summary refs log tree commit diff stats
path: root/Classes
diff options
context:
space:
mode:
Diffstat (limited to 'Classes')
-rw-r--r--Classes/JumpGameMode.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Classes/JumpGameMode.m b/Classes/JumpGameMode.m index 15b0e16..1e55b48 100644 --- a/Classes/JumpGameMode.m +++ b/Classes/JumpGameMode.m
@@ -182,6 +182,9 @@
182 if ((cart.sprite.position.y < 86) && (cart.boundedByScreen)) 182 if ((cart.sprite.position.y < 86) && (cart.boundedByScreen))
183 { 183 {
184 cart.boundedByScreen = NO; 184 cart.boundedByScreen = NO;
185 } else if ((cart.sprite.position.y >= 86) && (!cart.boundedByScreen))
186 {
187 cart.boundedByScreen = YES;
185 } 188 }
186 189
187 if (cart.sprite.position.y == (0-cart.sprite.boundingBox.size.height/2)) 190 if (cart.sprite.position.y == (0-cart.sprite.boundingBox.size.height/2))