mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
minor whitespace/style tidy-up.
This commit is contained in:
parent
dd8439b767
commit
33c00bf0db
4 changed files with 14 additions and 16 deletions
|
@ -59,7 +59,6 @@ static efrag_t *R_GetEfrag (void)
|
||||||
// we could just Hunk_Alloc a single efrag_t and return it, but since
|
// we could just Hunk_Alloc a single efrag_t and return it, but since
|
||||||
// the struct is so small (2 pointers) allocate groups of them
|
// the struct is so small (2 pointers) allocate groups of them
|
||||||
// to avoid wasting too much space on the hunk allocation headers.
|
// to avoid wasting too much space on the hunk allocation headers.
|
||||||
|
|
||||||
if (cl.free_efrags)
|
if (cl.free_efrags)
|
||||||
{
|
{
|
||||||
efrag_t *ef = cl.free_efrags;
|
efrag_t *ef = cl.free_efrags;
|
||||||
|
@ -112,11 +111,11 @@ void R_SplitEntityOnNode (mnode_t *node)
|
||||||
|
|
||||||
leaf = (mleaf_t *)node;
|
leaf = (mleaf_t *)node;
|
||||||
|
|
||||||
// grab an efrag off the free list
|
// grab an efrag off the free list
|
||||||
ef = R_GetEfrag();
|
ef = R_GetEfrag();
|
||||||
ef->entity = r_addent;
|
ef->entity = r_addent;
|
||||||
|
|
||||||
// set the leaf links
|
// set the leaf links
|
||||||
ef->leafnext = leaf->efrags;
|
ef->leafnext = leaf->efrags;
|
||||||
leaf->efrags = ef;
|
leaf->efrags = ef;
|
||||||
|
|
||||||
|
|
|
@ -47,7 +47,7 @@ typedef struct edict_s
|
||||||
|
|
||||||
entity_state_t baseline;
|
entity_state_t baseline;
|
||||||
unsigned char alpha; /* johnfitz -- hack to support alpha since it's not part of entvars_t */
|
unsigned char alpha; /* johnfitz -- hack to support alpha since it's not part of entvars_t */
|
||||||
unsigned char scale;
|
unsigned char scale; /* Quakespasm: added for model scale support. */
|
||||||
qboolean sendinterval; /* johnfitz -- send time until nextthink to client for better lerp timing */
|
qboolean sendinterval; /* johnfitz -- send time until nextthink to client for better lerp timing */
|
||||||
|
|
||||||
float freetime; /* sv.time when the object was freed */
|
float freetime; /* sv.time when the object was freed */
|
||||||
|
|
|
@ -262,7 +262,7 @@ typedef struct
|
||||||
unsigned char colormap; //johnfitz -- was int
|
unsigned char colormap; //johnfitz -- was int
|
||||||
unsigned char skin; //johnfitz -- was int
|
unsigned char skin; //johnfitz -- was int
|
||||||
unsigned char alpha; //johnfitz -- added
|
unsigned char alpha; //johnfitz -- added
|
||||||
unsigned char scale;
|
unsigned char scale; //Quakespasm: for model scale support.
|
||||||
int effects;
|
int effects;
|
||||||
} entity_state_t;
|
} entity_state_t;
|
||||||
|
|
||||||
|
@ -277,4 +277,3 @@ typedef struct
|
||||||
} usercmd_t;
|
} usercmd_t;
|
||||||
|
|
||||||
#endif /* _QUAKE_PROTOCOL_H */
|
#endif /* _QUAKE_PROTOCOL_H */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue