Skip to content

Commit

Permalink
Round experience when saving.
Browse files Browse the repository at this point in the history
In-game it is a float, but saved as (truncated) int. Refs #2641.
  • Loading branch information
cybersphinx committed May 6, 2011
1 parent 8b09b5d commit 4b197ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.c
Expand Up @@ -6573,7 +6573,7 @@ static BOOL buildSaveDroidFromDroid(SAVE_DROID* psSaveDroid, DROID* psCurr, DROI


//save out experience level
psSaveDroid->numKills = (UDWORD) psCurr->experience;
psSaveDroid->numKills = (UDWORD) (psCurr->experience + .5);
//version 11
//Watermelon:endian_udword for new save format
for(i = 0;i < psCurr->numWeaps;i++)
Expand Down

0 comments on commit 4b197ba

Please sign in to comment.