diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-09-04 12:04:29 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-09-04 12:04:29 -0400 |
commit | 2fa013a839517aef066edadb2fb4863b357fa55b (patch) | |
tree | 958953ea9c04ad7c62b4c0bb8f0c1464978f3faa /Classes/GameOverScene.m | |
parent | 138ddde0dfa19e49801cb35626130ccb9d34b878 (diff) | |
download | cartcollect-2fa013a839517aef066edadb2fb4863b357fa55b.tar.gz cartcollect-2fa013a839517aef066edadb2fb4863b357fa55b.tar.bz2 cartcollect-2fa013a839517aef066edadb2fb4863b357fa55b.zip |
Fixed a bug that submitted Jump highscores to the Collect global highscore list v0.4.1
Refs #204
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]; |