diff options
author | Marcus Huderle <huderlem@gmail.com> | 2017-07-07 17:56:43 -0700 |
---|---|---|
committer | Marcus Huderle <huderlem@gmail.com> | 2017-07-07 17:56:43 -0700 |
commit | ff234d05228fb469488c92e03c1fb28e37b4a51c (patch) | |
tree | 621aabe4d7514ce773d485f1ccbe2732a00a5ea0 /home.asm | |
parent | ef17a2820d16b9f488875d2d0c07dbc0e1dd0c04 (diff) |
Rename wDisableBallGravityAndTilt to wEnableBallGravityAndTilt. The meaning was flipped.
Diffstat (limited to 'home.asm')
-rwxr-xr-x | home.asm | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4218,7 +4218,7 @@ Sine: ; 0x2149 ApplyGravityToBall: ; 0x2168 ; Adds a constant to the pinball's y velocity. - ld a, [wDisableBallGravityAndTilt] + ld a, [wEnableBallGravityAndTilt] and a ret z ld de, $000b ; gravity added to y velocity every frame @@ -5243,7 +5243,7 @@ HandleLeftTilt: ; 0x358c call PlaySoundEffect .skipSoundEffect ld a, [wd548] - ld hl, wDisableBallGravityAndTilt + ld hl, wEnableBallGravityAndTilt and [hl] jr z, .skipBallMovement ld a, [wBallXPos + 1] @@ -5299,7 +5299,7 @@ HandleRightTilt: ; 0x35f3 call PlaySoundEffect .skipSoundEffect ld a, [wd548] - ld hl, wDisableBallGravityAndTilt + ld hl, wEnableBallGravityAndTilt and [hl] jr z, .skipBallMovement ld a, [wBallXPos + 1] @@ -5355,7 +5355,7 @@ HandleUpperTilt: ; 0x365a call PlaySoundEffect .skipSoundEffect ld a, [wd548] - ld hl, wDisableBallGravityAndTilt + ld hl, wEnableBallGravityAndTilt and [hl] jr z, .skipBallMovement ld a, [wBallYPos + 1] @@ -5395,7 +5395,7 @@ HandleUpperTilt: ; 0x365a ApplyTiltForces: ; 0x36c1 ld a, [wd548] - ld hl, wDisableBallGravityAndTilt + ld hl, wEnableBallGravityAndTilt and [hl] ret z ld c, $0 |