various crap

master
an 2019-12-06 12:07:30 -05:00
parent 586d1cef9b
commit 677eecdd5a
10 changed files with 15 additions and 14 deletions

View File

@ -38,7 +38,7 @@ typedef struct
char name[MAX_SCOREBOARDNAME]; char name[MAX_SCOREBOARDNAME];
float entertime; float entertime;
int32_t frags; int32_t frags;
int32_t colors; // two 4 bit fields int32_t colors; // 2x4 bit
byte translations[VID_GRADES * 256]; byte translations[VID_GRADES * 256];
} scoreboard_t; } scoreboard_t;

View File

@ -28,7 +28,7 @@ cvar_t variables are used to hold scalar or string variables that can
be changed or displayed at the console or prog code as well as accessed be changed or displayed at the console or prog code as well as accessed
directly in C code. directly in C code.
it is sufficient to initialize a cvar_t with just the first two fields, it is sufficient to initialize a cvar_t with just the first two members,
or you can add a ,true flag for variables that you want saved to the or you can add a ,true flag for variables that you want saved to the
configuration file when the game is quit: configuration file when the game is quit:

View File

@ -34,7 +34,7 @@ mnode_t *r_pefragtopnode;
ENTITY FRAGMENT FUNCTIONS ENTITY FRAGMENT FUNCTIONS
ericw -- GLQuake only uses efrags for static entities, and they're never ericw -- GLQuake only uses efrags for static entities, and they're never
removed, so I trimmed out unused functionality and fields in efrag_t. removed, so I trimmed out unused functionality and stuff in efrag_t.
Now, efrags are just a linked list for each leaf of the static Now, efrags are just a linked list for each leaf of the static
entities that touch that leaf. The efrags are hunk-allocated so there is no entities that touch that leaf. The efrags are hunk-allocated so there is no

View File

@ -60,10 +60,10 @@ typedef enum
// !!! if this is changed, it must be changed in d_ifacea.h too !!! // !!! if this is changed, it must be changed in d_ifacea.h too !!!
typedef struct particle_s typedef struct particle_s
{ {
// driver-usable fields // driver-usable
vec3_t org; vec3_t org;
float color; float color;
// drivers never touch the following fields // drivers never touch the following
struct particle_s *next; struct particle_s *next;
vec3_t vel; vec3_t vel;
float ramp; float ramp;

View File

@ -82,7 +82,7 @@ double SetNetTime(void)
NET_NewQSocket NET_NewQSocket
Called by drivers when a new communications endpoint is required Called by drivers when a new communications endpoint is required
The sequence and buffer fields will be filled in properly The sequence and buffer members will be filled in properly
=================== ===================
*/ */
qsocket_t *NET_NewQSocket(void) qsocket_t *NET_NewQSocket(void)

View File

@ -170,6 +170,7 @@ enum
ED_noise1, ED_noise1,
ED_noise2, ED_noise2,
ED_noise3, ED_noise3,
ED_SYSTEM_END,
}; };
#define DEF_SAVEGLOBAL (1 << 15) #define DEF_SAVEGLOBAL (1 << 15)

View File

@ -588,9 +588,6 @@ static string_t ED_NewString(const char *string)
/* /*
============= =============
ED_ParseEval ED_ParseEval
Can parse either fields or globals
returns false if error
============= =============
*/ */
bool ED_ParseEpair(void *base, ddef_t *key, const char *s) bool ED_ParseEpair(void *base, ddef_t *key, const char *s)
@ -648,7 +645,7 @@ bool ED_ParseEpair(void *base, ddef_t *key, const char *s)
def = ED_FindField(s); def = ED_FindField(s);
if(!def) if(!def)
{ {
//johnfitz -- HACK -- suppress error becuase fog/sky fields might not be mentioned in defs.qc //johnfitz -- HACK -- suppress error becuase fog/sky might not be mentioned in defs.qc
if(strncmp(s, "sky", 3) && strcmp(s, "fog")) if(strncmp(s, "sky", 3) && strcmp(s, "fog"))
Con_DPrintf("Can't find field %s\n", s); Con_DPrintf("Can't find field %s\n", s);
return false; return false;
@ -751,7 +748,7 @@ const char *ED_ParseEdict(const char *data, edict_t *ent)
key = ED_FindField(keyname); key = ED_FindField(keyname);
if(!key) if(!key)
{ {
//johnfitz -- HACK -- suppress error becuase fog/sky/alpha fields might not be mentioned in defs.qc //johnfitz -- HACK -- suppress error becuase fog/sky/alpha might not be mentioned in defs.qc
if(strncmp(keyname, "sky", 3) && strcmp(keyname, "fog") && strcmp(keyname, "alpha")) if(strncmp(keyname, "sky", 3) && strcmp(keyname, "fog") && strcmp(keyname, "alpha"))
Con_DPrintf("\"%s\" is not a field\n", keyname); //johnfitz -- was Con_Printf Con_DPrintf("\"%s\" is not a field\n", keyname); //johnfitz -- was Con_Printf
continue; continue;

View File

@ -80,6 +80,9 @@ static void PR_LoadProgHeader(byte const *data)
if(progs.numglobals < GBL_SYSTEM_END) if(progs.numglobals < GBL_SYSTEM_END)
Host_Error("PR_LoadProgHeader: not enough globals\n"); Host_Error("PR_LoadProgHeader: not enough globals\n");
if(progs.entityfields < ED_SYSTEM_END)
Host_Error("PR_LoadProgHeader: not enough entity fields\n");
} }
static void PR_LoadFunctions(byte const *data) static void PR_LoadFunctions(byte const *data)

View File

@ -26,7 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
/* /*
pushmove objects do not obey gravity, and do not interact with each other or trigger fields, but block normal movement and push normal objects when they move. pushmove objects do not obey gravity, and do not interact with each other or trigger, but block normal movement and push normal objects when they move.
onground is set for toss objects when they come to a complete rest. it is set for steping or walking objects onground is set for toss objects when they come to a complete rest. it is set for steping or walking objects

View File

@ -375,8 +375,8 @@ void SV_AirMove(void)
=================== ===================
SV_ClientThink SV_ClientThink
the move fields specify an intended velocity in pix/sec moves specify an intended velocity in pix/sec
the angle fields specify an exact angular motion in degrees angles specify an exact angular motion in degrees
=================== ===================
*/ */
void SV_ClientThink(void) void SV_ClientThink(void)