Skip to content

Commit

Permalink
fixed issue with saveAndReportScore
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedrezik committed Jul 11, 2020
1 parent a208611 commit e08170c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 27 deletions.
3 changes: 2 additions & 1 deletion GC Manager/GameCenterManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,9 @@ - (void)saveAndReportScore:(long long)score leaderboard:(NSString *)identifier s
if (playerDict == nil) playerDict = [NSMutableDictionary dictionary];

NSNumber *savedHighScore = [playerDict objectForKey:identifier];
//MARK:- issue arises here
if (savedHighScore == nil)
savedHighScore = [NSNumber numberWithLongLong:0];
savedHighScore = [NSNumber numberWithLongLong:-INFINITY];

long long savedHighScoreValue = [savedHighScore longLongValue];

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
67 changes: 41 additions & 26 deletions Images.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,74 @@
{
"images" : [
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "AppIcon29x29.png",
"scale" : "1x"
"scale" : "2x",
"size" : "20x20"
},
{
"size" : "29x29",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
"scale" : "3x",
"size" : "20x20"
},
{
"filename" : "AppIcon29x29.png",
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
"scale" : "1x",
"size" : "29x29"
},
{
"size" : "40x40",
"filename" : "[email protected]",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
"scale" : "2x",
"size" : "29x29"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
"scale" : "3x",
"size" : "29x29"
},
{
"size" : "57x57",
"filename" : "[email protected]",
"idiom" : "iphone",
"filename" : "Icon.png",
"scale" : "1x"
"scale" : "2x",
"size" : "40x40"
},
{
"size" : "57x57",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
"scale" : "3x",
"size" : "40x40"
},
{
"filename" : "Icon.png",
"idiom" : "iphone",
"scale" : "1x",
"size" : "57x57"
},
{
"size" : "60x60",
"filename" : "[email protected]",
"idiom" : "iphone",
"scale" : "2x",
"size" : "57x57"
},
{
"filename" : "[email protected]",
"scale" : "2x"
"idiom" : "iphone",
"scale" : "2x",
"size" : "60x60"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
"scale" : "3x",
"size" : "60x60"
},
{
"idiom" : "ios-marketing",
"scale" : "1x",
"size" : "1024x1024"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
}

0 comments on commit e08170c

Please sign in to comment.