summary refs log tree commit diff stats
path: root/Classes/GameModeSelectionLayer.m
diff options
context:
space:
mode:
Diffstat (limited to 'Classes/GameModeSelectionLayer.m')
-rw-r--r--Classes/GameModeSelectionLayer.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/Classes/GameModeSelectionLayer.m b/Classes/GameModeSelectionLayer.m index e5a83f1..4e51357 100644 --- a/Classes/GameModeSelectionLayer.m +++ b/Classes/GameModeSelectionLayer.m
@@ -45,8 +45,11 @@
45 45
46 for (GameModeInfo* info in [[GameModeManager sharedInstance] gameModes]) 46 for (GameModeInfo* info in [[GameModeManager sharedInstance] gameModes])
47 { 47 {
48 GameModeSelection* selection = [GameModeSelection selectionWithGameModeInfo:info]; 48 if (info.unlocked)
49 [gameModes addObject:selection]; 49 {
50 GameModeSelection* selection = [GameModeSelection selectionWithGameModeInfo:info];
51 [gameModes addObject:selection];
52 }
50 } 53 }
51 54
52 CCMenu* menu = [CCMenu menuWithItems:nil]; 55 CCMenu* menu = [CCMenu menuWithItems:nil];