mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-11-22 03:41:35 +00:00
Unify progdefs.h across all sourceports
This commit is contained in:
parent
ce50b0f8e1
commit
e478186199
2 changed files with 81 additions and 88 deletions
|
@ -1041,11 +1041,6 @@ void PR_LoadProgs (void)
|
|||
for (i=0 ; i<sizeof(*progs)/4 ; i++)
|
||||
((int *)progs)[i] = LittleLong ( ((int *)progs)[i] );
|
||||
|
||||
if (progs->version != PROG_VERSION)
|
||||
Sys_Error ("progs.dat has wrong version number (%i should be %i)", progs->version, PROG_VERSION);
|
||||
if (progs->crc != PROGHEADER_CRC)
|
||||
Con_Printf ("WARNING!!! progs.dat system vars have been modified, progdefs.h is out of date. Current one is %i\n", progs->crc);
|
||||
|
||||
pr_functions = (dfunction_t *)((byte *)progs + progs->ofs_functions);
|
||||
pr_strings = (char *)progs + progs->ofs_strings;
|
||||
pr_globaldefs = (ddef_t *)((byte *)progs + progs->ofs_globaldefs);
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
|
||||
/* file generated by qcc, do not modify */
|
||||
/* TODO: Use FTEQCC to autogenerate this. */
|
||||
|
||||
typedef struct
|
||||
{ int pad[28];
|
||||
{
|
||||
int pad[28];
|
||||
int self;
|
||||
int other;
|
||||
int world;
|
||||
|
@ -56,7 +56,7 @@ typedef struct
|
|||
func_t ClientDisconnect;
|
||||
func_t SetNewParms;
|
||||
func_t SetChangeParms;
|
||||
func_t ParseClientCommand;
|
||||
func_t ParseClientCommand; // special command calls
|
||||
string_t CMD_STRING;
|
||||
func_t Soft_Restart;
|
||||
} globalvars_t;
|
||||
|
@ -166,5 +166,3 @@ typedef struct
|
|||
float facingenemy;
|
||||
float scale;
|
||||
} entvars_t;
|
||||
|
||||
#define PROGHEADER_CRC 14116
|
||||
|
|
Loading…
Reference in a new issue