couple fixes, to do with minus world

This commit is contained in:
JHDev2006
2025-09-26 20:46:39 +01:00
parent 659e9f3ce8
commit 786a81a7b8
5 changed files with 220 additions and 43 deletions

View File

@@ -81,6 +81,8 @@ func write_save(campaign: String = Global.current_campaign, force := false) -> v
save_json = SAVE_TEMPLATE.duplicate(true)
match Global.current_game_mode:
Global.GameMode.CAMPAIGN:
if Global.world_num < 0:
Global.world_num = 1
if Global.high_score < Global.score:
Global.high_score = Global.score
save_json["World"] = Global.world_num