Add unused ai_restore_state parameter version to match D2X
This commit is contained in:
parent
63b1abc80a
commit
52a15a6e11
|
@ -3268,8 +3268,9 @@ void ai_cloak_info_read_n_swap(ai_cloak_info *ci, int n, int swap, PHYSFS_file *
|
|||
}
|
||||
}
|
||||
|
||||
int ai_restore_state(PHYSFS_file *fp, int swap)
|
||||
int ai_restore_state(PHYSFS_file *fp, int version, int swap)
|
||||
{
|
||||
(void)version;
|
||||
fix tmptime32 = 0;
|
||||
|
||||
Ai_initialized = PHYSFSX_readSXE32(fp, swap);
|
||||
|
|
|
@ -95,6 +95,6 @@ extern int Boss_been_hit;
|
|||
extern fix AI_proc_time;
|
||||
|
||||
extern int ai_save_state(PHYSFS_file * fp);
|
||||
extern int ai_restore_state(PHYSFS_file *fp, int swap);
|
||||
extern int ai_restore_state(PHYSFS_file *fp, int version, int swap);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1355,7 +1355,7 @@ RetryObjectLoading:
|
|||
Total_countdown_time = Countdown_timer/F0_5; // we do not need to know this, but it should not be 0 either...
|
||||
|
||||
// Restore the AI state
|
||||
ai_restore_state( fp, swap );
|
||||
ai_restore_state( fp, 0, swap );
|
||||
|
||||
// Restore the automap visited info
|
||||
if ( Highest_segment_index+1 > MAX_SEGMENTS_ORIGINAL )
|
||||
|
|
Loading…
Reference in a new issue