[Add] Some commentary so noone else makes the same mistake.
This commit is contained in:
		
							parent
							
								
									4ff23aefc8
								
							
						
					
					
						commit
						27292f1770
					
				@ -45,7 +45,7 @@ static int  load_game(char* file);
 | 
				
			|||||||
/* Save all the game data. */
 | 
					/* Save all the game data. */
 | 
				
			||||||
static int save_data(xmlTextWriterPtr writer) {
 | 
					static int save_data(xmlTextWriterPtr writer) {
 | 
				
			||||||
  /* The data itself. */
 | 
					  /* The data itself. */
 | 
				
			||||||
  if(diff_save(writer) < 0)             return -1;
 | 
					  if(diff_save(writer) < 0)             return -1; /* Must save first or can get cleared. */
 | 
				
			||||||
  if(player_save(writer) < 0)           return -1;
 | 
					  if(player_save(writer) < 0)           return -1;
 | 
				
			||||||
  if(missions_saveActive(writer) < 0)   return -1;
 | 
					  if(missions_saveActive(writer) < 0)   return -1;
 | 
				
			||||||
  if(var_save(writer) < 0)              return -1;
 | 
					  if(var_save(writer) < 0)              return -1;
 | 
				
			||||||
@ -210,7 +210,7 @@ static int load_game(char* file) {
 | 
				
			|||||||
    return -1;
 | 
					    return -1;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  diff_load(node);
 | 
					  diff_load(node);    /* Must load first to work properly. */
 | 
				
			||||||
  player_load(node);
 | 
					  player_load(node);
 | 
				
			||||||
  var_load(node);
 | 
					  var_load(node);
 | 
				
			||||||
  missions_loadActive(node);
 | 
					  missions_loadActive(node);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user