diff options
author | Starla Insigna <starla4444@gmail.com> | 2011-08-25 13:46:31 -0400 |
---|---|---|
committer | Starla Insigna <starla4444@gmail.com> | 2011-08-25 13:46:31 -0400 |
commit | d2f3c1322b29abf618d272c8c3580d2d2da4887e (patch) | |
tree | e53cb13dbb7853a2e2bbc7befb7d04a92695f709 /Classes/GameModeSelection.m | |
parent | d8f00310e486aed1ab289a0f816acec571193c32 (diff) | |
download | cartcollect-d2f3c1322b29abf618d272c8c3580d2d2da4887e.tar.gz cartcollect-d2f3c1322b29abf618d272c8c3580d2d2da4887e.tar.bz2 cartcollect-d2f3c1322b29abf618d272c8c3580d2d2da4887e.zip |
Fixed selection screen highscore label bug
This is pretty much the same as the bug that was fixed in r15--CCSprite textures need different cache keys when they change, otherwise they won't change. Fixes #212
Diffstat (limited to 'Classes/GameModeSelection.m')
-rw-r--r-- | Classes/GameModeSelection.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Classes/GameModeSelection.m b/Classes/GameModeSelection.m index 69f1ddb..40981b1 100644 --- a/Classes/GameModeSelection.m +++ b/Classes/GameModeSelection.m | |||
@@ -177,7 +177,7 @@ | |||
177 | 177 | ||
178 | CGImageRef highscoreImage = [UIGraphicsGetImageFromCurrentImageContext() CGImage]; | 178 | CGImageRef highscoreImage = [UIGraphicsGetImageFromCurrentImageContext() CGImage]; |
179 | UIGraphicsEndImageContext(); | 179 | UIGraphicsEndImageContext(); |
180 | CCSprite* highscoreSprite = [CCSprite spriteWithCGImage:highscoreImage key:[NSString stringWithFormat:@"gms-%@-highscore", filename]]; | 180 | CCSprite* highscoreSprite = [CCSprite spriteWithCGImage:highscoreImage key:[NSString stringWithFormat:@"gms-%@-highscore-%d", filename, localHighscore.score]]; |
181 | highscoreSprite.position = ccp(-5, 0-64-(highscoreSize.height)/2-10); | 181 | highscoreSprite.position = ccp(-5, 0-64-(highscoreSize.height)/2-10); |
182 | [self addChild:highscoreSprite]; | 182 | [self addChild:highscoreSprite]; |
183 | } | 183 | } |