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:
parent
31a1418c99
commit
dbcb8efb15
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user