diff options
Diffstat (limited to 'Classes/GameOverScene.m')
-rwxr-xr-x | Classes/GameOverScene.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Classes/GameOverScene.m b/Classes/GameOverScene.m index f2dca0b..28c59ec 100755 --- a/Classes/GameOverScene.m +++ b/Classes/GameOverScene.m | |||
@@ -114,7 +114,14 @@ | |||
114 | 114 | ||
115 | CLScoreServerPost* server = [[CLScoreServerPost alloc] initWithGameName:@"Cart Collect" gameKey:@"38f440a074b3264386455a36b2706d8f" delegate:self]; | 115 | CLScoreServerPost* server = [[CLScoreServerPost alloc] initWithGameName:@"Cart Collect" gameKey:@"38f440a074b3264386455a36b2706d8f" delegate:self]; |
116 | NSMutableDictionary* dict = [[NSMutableDictionary alloc] init]; | 116 | NSMutableDictionary* dict = [[NSMutableDictionary alloc] init]; |
117 | [dict setObject:@"Classic" forKey:@"cc_category"]; | 117 | |
118 | if ([gameMode isEqual:@"Collect"]) | ||
119 | { | ||
120 | [dict setObject:@"Classic" forKey:@"cc_category"]; | ||
121 | } else { | ||
122 | [dict setObject:gameMode forKey:@"cc_category"]; | ||
123 | } | ||
124 | |||
118 | [dict setObject:[textField text] forKey:@"cc_playername"]; | 125 | [dict setObject:[textField text] forKey:@"cc_playername"]; |
119 | [dict setObject:[NSNumber numberWithInt:score] forKey:@"cc_score"]; | 126 | [dict setObject:[NSNumber numberWithInt:score] forKey:@"cc_score"]; |
120 | [server sendScore:dict]; | 127 | [server sendScore:dict]; |