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
This commit is contained in:
dnivra 2014-03-03 15:20:45 +00:00
parent 31a1418c99
commit dbcb8efb15

View File

@ -180,6 +180,8 @@ getkeyi: mov dh,ah ; Gluk
adr32: cmp ah,LEFT_KEY adr32: cmp ah,LEFT_KEY
jne adr_30 jne adr_30
cmp dword[pauses], 1 ; fixes pause bug
je adr4000
dec dword [current_block_x] dec dword [current_block_x]
call check_crash call check_crash
jz adr4000 jz adr4000
@ -188,6 +190,8 @@ adr4000: jmp scendi
adr_30: cmp ah,RIGHT_KEY adr_30: cmp ah,RIGHT_KEY
jne adr_31 jne adr_31
cmp dword[pauses], 1 ; fixes pause bug
je adr3000
inc dword [current_block_x] inc dword [current_block_x]
call check_crash call check_crash
jz adr3000 jz adr3000
@ -196,6 +200,8 @@ adr3000: jmp scendi
adr_31: cmp ah,UP_KEY adr_31: cmp ah,UP_KEY
jne adr51 jne adr51
cmp dword[pauses], 1 ; fixes pause bug
je adr50
mov edx,[current_block_pointer] mov edx,[current_block_pointer]
mov edx,[edx+16] mov edx,[edx+16]
mov esi,[current_block_pointer] mov esi,[current_block_pointer]