Fix compile error with ai_restore_state and include necessary ogl_init.h in state.c (whoops)

This commit is contained in:
kreatordxx 2009-09-11 05:15:53 +00:00
parent e7b5721797
commit 31413b59df
4 changed files with 8 additions and 3 deletions

View file

@ -1,5 +1,9 @@
D1X-Rebirth Changelog
20090911
--------
main/ai.c, main/ai.h, main/state.c: Fix compile error with ai_restore_state and include necessary ogl_init.h in state.c (whoops)
20090909
--------
d1x-rebirth.xcodeproj/project.pbxproj, utilities/extractD1Data.cpp, utilities/SConstruct: Add program for extracting Mac data files from installer

View file

@ -3338,7 +3338,7 @@ int ai_save_state(PHYSFS_file *fp)
return 1;
}
int ai_restore_state(PHYSFS_file *fp, int version)
int ai_restore_state(PHYSFS_file *fp)
{
PHYSFS_read(fp, &Ai_initialized, sizeof(int), 1);
PHYSFS_read(fp, &Overall_agitation, sizeof(int), 1);

View file

@ -97,6 +97,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 version);
extern int ai_restore_state(PHYSFS_file *fp);
#endif

View file

@ -60,8 +60,9 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
#include "ai.h"
#include "state.h"
#include "multi.h"
#ifdef OGL
#include "gr.h"
#ifdef OGL
#include "ogl_init.h"
#endif
#include "physfsx.h"