From dbcb8efb154a635bc029554fcf31bdf6a70600bb Mon Sep 17 00:00:00 2001 From: dnivra Date: Mon, 3 Mar 2014 15:20:45 +0000 Subject: [PATCH] Fixed pause bug in Tetris: UP, LEFT and RIGHT no longer work when game is paused. git-svn-id: svn://kolibrios.org@4603 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/games/tetris/trunk/tetris.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/programs/games/tetris/trunk/tetris.asm b/programs/games/tetris/trunk/tetris.asm index b87e79d01b..71acf500ad 100644 --- a/programs/games/tetris/trunk/tetris.asm +++ b/programs/games/tetris/trunk/tetris.asm @@ -180,6 +180,8 @@ getkeyi: mov dh,ah ; Gluk adr32: cmp ah,LEFT_KEY jne adr_30 + cmp dword[pauses], 1 ; fixes pause bug + je adr4000 dec dword [current_block_x] call check_crash jz adr4000 @@ -188,6 +190,8 @@ adr4000: jmp scendi adr_30: cmp ah,RIGHT_KEY jne adr_31 + cmp dword[pauses], 1 ; fixes pause bug + je adr3000 inc dword [current_block_x] call check_crash jz adr3000 @@ -196,6 +200,8 @@ adr3000: jmp scendi adr_31: cmp ah,UP_KEY jne adr51 + cmp dword[pauses], 1 ; fixes pause bug + je adr50 mov edx,[current_block_pointer] mov edx,[edx+16] mov esi,[current_block_pointer]