summary refs log tree commit diff stats
path: root/Classes/GameMode.m
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/GameMode.m')
-rw-r--r--Classes/GameMode.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Classes/GameMode.m b/Classes/GameMode.m index 8f695d1..af9b3bd 100644 --- a/Classes/GameMode.m +++ b/Classes/GameMode.m
@@ -84,13 +84,16 @@
84{ 84{
85 [cart tick]; 85 [cart tick];
86 86
87 NSMutableSet* discardedObjects = [NSMutableSet set];
87 for (FallingObject* object in objects) 88 for (FallingObject* object in objects)
88 { 89 {
89 if ([object tick]) 90 if ([object tick])
90 { 91 {
91 [objects removeObject:object]; 92 [discardedObjects addObject:object];
92 } 93 }
93 } 94 }
95
96 [objects minusSet:discardedObjects];
94} 97}
95 98
96- (BOOL)canPause 99- (BOOL)canPause