[Fix] Fixed diffs not saving correctly.
This commit is contained in:
parent
69f7f71572
commit
4ff23aefc8
@ -45,12 +45,12 @@ static int load_game(char* file);
|
||||
/* Save all the game data. */
|
||||
static int save_data(xmlTextWriterPtr writer) {
|
||||
/* The data itself. */
|
||||
if(diff_save(writer) < 0) return -1;
|
||||
if(player_save(writer) < 0) return -1;
|
||||
if(missions_saveActive(writer) < 0) return -1;
|
||||
if(var_save(writer) < 0) return -1;
|
||||
if(pfaction_save(writer) < 0) return -1;
|
||||
if(hook_save(writer) < 0) return -1;
|
||||
if(diff_save(writer) < 0) return -1;
|
||||
if(space_sysSave(writer) < 0) return -1;
|
||||
return 0;
|
||||
}
|
||||
@ -210,12 +210,12 @@ static int load_game(char* file) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
diff_load(node);
|
||||
player_load(node);
|
||||
var_load(node);
|
||||
missions_loadActive(node);
|
||||
pfaction_load(node);
|
||||
hook_load(node);
|
||||
diff_load(node);
|
||||
space_sysLoad(node);
|
||||
|
||||
/* Need to run takeoff hooks since player just "took off". */
|
||||
|
Loading…
Reference in New Issue
Block a user