Only write player file if new highest level is higher than old

This commit is contained in:
Kp 2013-11-16 20:58:39 +00:00
parent c84ef6ac84
commit 2665abfb4b

View file

@ -1133,9 +1133,10 @@ void set_highest_level(int levelnum)
i = find_hli_entry();
if (levelnum > PlayerCfg.HighestLevels[i].LevelNum)
{
PlayerCfg.HighestLevels[i].LevelNum = levelnum;
write_player_file();
write_player_file();
}
}
//gets the player's highest level from the file for this mission