mirror of
https://github.com/nzp-team/glquake.git
synced 2024-11-10 06:31:35 +00:00
Unify progdefs.h across all sourceports
This commit is contained in:
parent
39cc0a6655
commit
93c42542c8
2 changed files with 147 additions and 174 deletions
|
@ -1021,11 +1021,6 @@ void PR_LoadProgs (void)
|
||||||
for (i=0 ; i<sizeof(*progs)/4 ; i++)
|
for (i=0 ; i<sizeof(*progs)/4 ; i++)
|
||||||
((int *)progs)[i] = LittleLong ( ((int *)progs)[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 ("progs.dat system vars have been modified, progdefs.h is out of date\n");
|
|
||||||
|
|
||||||
pr_functions = (dfunction_t *)((byte *)progs + progs->ofs_functions);
|
pr_functions = (dfunction_t *)((byte *)progs + progs->ofs_functions);
|
||||||
pr_strings = (char *)progs + progs->ofs_strings;
|
pr_strings = (char *)progs + progs->ofs_strings;
|
||||||
pr_globaldefs = (ddef_t *)((byte *)progs + progs->ofs_globaldefs);
|
pr_globaldefs = (ddef_t *)((byte *)progs + progs->ofs_globaldefs);
|
||||||
|
|
|
@ -1,28 +1,8 @@
|
||||||
/*
|
/* TODO: Use FTEQCC to autogenerate this. */
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
|
||||||
modify it under the terms of the GNU General Public License
|
|
||||||
as published by the Free Software Foundation; either version 2
|
|
||||||
of the License, or (at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
|
|
||||||
See the GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/* file generated by qcc, do not modify */
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{ int pad[28];
|
{
|
||||||
|
int pad[28];
|
||||||
int self;
|
int self;
|
||||||
int other;
|
int other;
|
||||||
int world;
|
int world;
|
||||||
|
@ -76,7 +56,7 @@ typedef struct
|
||||||
func_t ClientDisconnect;
|
func_t ClientDisconnect;
|
||||||
func_t SetNewParms;
|
func_t SetNewParms;
|
||||||
func_t SetChangeParms;
|
func_t SetChangeParms;
|
||||||
func_t ParseClientCommand;
|
func_t ParseClientCommand; // special command calls
|
||||||
string_t CMD_STRING;
|
string_t CMD_STRING;
|
||||||
func_t Soft_Restart;
|
func_t Soft_Restart;
|
||||||
} globalvars_t;
|
} globalvars_t;
|
||||||
|
@ -186,5 +166,3 @@ typedef struct
|
||||||
float facingenemy;
|
float facingenemy;
|
||||||
float scale;
|
float scale;
|
||||||
} entvars_t;
|
} entvars_t;
|
||||||
|
|
||||||
#define PROGHEADER_CRC 5927
|
|
||||||
|
|
Loading…
Reference in a new issue