mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-24 21:12:27 +00:00
Whitespace and typos.
This commit is contained in:
parent
ff82461483
commit
603a88c160
10 changed files with 28 additions and 33 deletions
|
@ -29,15 +29,15 @@
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
#include <string.h>
|
# include <string.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_STRINGS_H
|
#ifdef HAVE_STRINGS_H
|
||||||
#include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "cmd.h"
|
#include "cmd.h"
|
||||||
#include "console.h"
|
#include "console.h"
|
||||||
#include "cvar.h"
|
#include "cvar.h"
|
||||||
|
|
|
@ -29,13 +29,13 @@
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
#include <string.h>
|
# include <string.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_STRINGS_H
|
#ifdef HAVE_STRINGS_H
|
||||||
#include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "mathlib.h"
|
#include "mathlib.h"
|
||||||
|
|
|
@ -30,12 +30,11 @@
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
#include <string.h>
|
# include <string.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_STRINGS_H
|
#ifdef HAVE_STRINGS_H
|
||||||
#include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "mdfour.h"
|
#include "mdfour.h"
|
||||||
|
@ -51,10 +50,11 @@ static struct mdfour *m;
|
||||||
#define F(X,Y,Z) (((X)&(Y)) | ((~(X))&(Z)))
|
#define F(X,Y,Z) (((X)&(Y)) | ((~(X))&(Z)))
|
||||||
#define G(X,Y,Z) (((X)&(Y)) | ((X)&(Z)) | ((Y)&(Z)))
|
#define G(X,Y,Z) (((X)&(Y)) | ((X)&(Z)) | ((Y)&(Z)))
|
||||||
#define H(X,Y,Z) ((X)^(Y)^(Z))
|
#define H(X,Y,Z) ((X)^(Y)^(Z))
|
||||||
|
|
||||||
#ifdef LARGE_INT32
|
#ifdef LARGE_INT32
|
||||||
#define lshift(x,s) ((((x)<<(s))&0xFFFFFFFF) | (((x)>>(32-(s)))&0xFFFFFFFF))
|
# define lshift(x,s) ((((x)<<(s))&0xFFFFFFFF) | (((x)>>(32-(s)))&0xFFFFFFFF))
|
||||||
#else
|
#else
|
||||||
#define lshift(x,s) (((x)<<(s)) | ((x)>>(32-(s))))
|
# define lshift(x,s) (((x)<<(s)) | ((x)>>(32-(s))))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ROUND1(a,b,c,d,k,s) a = lshift(a + F(b,c,d) + X[k], s)
|
#define ROUND1(a,b,c,d,k,s) a = lshift(a + F(b,c,d) + X[k], s)
|
||||||
|
|
|
@ -32,12 +32,11 @@
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
#include <string.h>
|
# include <string.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_STRINGS_H
|
#ifdef HAVE_STRINGS_H
|
||||||
#include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "cvar.h"
|
#include "cvar.h"
|
||||||
|
|
|
@ -32,12 +32,11 @@
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
#include <string.h>
|
# include <string.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_STRINGS_H
|
#ifdef HAVE_STRINGS_H
|
||||||
#include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "cl_main.h"
|
#include "cl_main.h"
|
||||||
|
|
|
@ -186,7 +186,7 @@ RecursiveLightPoint (mnode_t *node, vec3_t start, vec3_t end)
|
||||||
return r; // hit something
|
return r; // hit something
|
||||||
|
|
||||||
if ((back < 0) == side)
|
if ((back < 0) == side)
|
||||||
return -1; // didn't hit anuthing
|
return -1; // didn't hit anything
|
||||||
|
|
||||||
// check for impact on this node
|
// check for impact on this node
|
||||||
|
|
||||||
|
|
|
@ -29,15 +29,15 @@
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
#include <string.h>
|
# include <string.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_STRINGS_H
|
#ifdef HAVE_STRINGS_H
|
||||||
#include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "bothdefs.h"
|
#include "bothdefs.h"
|
||||||
#include "cl_cam.h"
|
#include "cl_cam.h"
|
||||||
#include "cl_main.h"
|
#include "cl_main.h"
|
||||||
|
@ -725,7 +725,7 @@ R_DrawViewModel (void)
|
||||||
j = R_LightPoint (currententity->origin);
|
j = R_LightPoint (currententity->origin);
|
||||||
|
|
||||||
if (j < 24)
|
if (j < 24)
|
||||||
j = 24; // allways give some light on gun
|
j = 24; // always give some light on gun
|
||||||
r_viewlighting.ambientlight = j;
|
r_viewlighting.ambientlight = j;
|
||||||
r_viewlighting.shadelight = j;
|
r_viewlighting.shadelight = j;
|
||||||
|
|
||||||
|
@ -1156,8 +1156,7 @@ R_InitTurb (void)
|
||||||
|
|
||||||
for (i = 0; i < 1280; i++) {
|
for (i = 0; i < 1280; i++) {
|
||||||
sintable[i] = AMP + sin (i * 3.14159 * 2 / CYCLE) * AMP;
|
sintable[i] = AMP + sin (i * 3.14159 * 2 / CYCLE) * AMP;
|
||||||
intsintable[i] = AMP2 + sin (i * 3.14159 * 2 / CYCLE) * AMP2; // AMP2,
|
intsintable[i] = AMP2 + sin (i * 3.14159 * 2 / CYCLE) * AMP2;
|
||||||
// not
|
// AMP2 not 20
|
||||||
// 20
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,12 +29,11 @@
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
#include <string.h>
|
# include <string.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_STRINGS_H
|
#ifdef HAVE_STRINGS_H
|
||||||
#include <strings.h>
|
# include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "cl_parse.h"
|
#include "cl_parse.h"
|
||||||
|
|
|
@ -29,7 +29,6 @@
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STRING_H
|
#ifdef HAVE_STRING_H
|
||||||
# include <string.h>
|
# include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -59,7 +59,7 @@ typedef struct {
|
||||||
// entire move
|
// entire move
|
||||||
float *mins, *maxs; // size of the moving object
|
float *mins, *maxs; // size of the moving object
|
||||||
vec3_t mins2, maxs2; // size when clipping against
|
vec3_t mins2, maxs2; // size when clipping against
|
||||||
// mosnters
|
// monsters
|
||||||
float *start, *end;
|
float *start, *end;
|
||||||
trace_t trace;
|
trace_t trace;
|
||||||
int type;
|
int type;
|
||||||
|
@ -452,7 +452,7 @@ SV_LinkEdict (edict_t *ent, qboolean touch_triggers)
|
||||||
else
|
else
|
||||||
InsertLinkBefore (&ent->area, &node->solid_edicts);
|
InsertLinkBefore (&ent->area, &node->solid_edicts);
|
||||||
|
|
||||||
// if touch_triggers, touch all entities at this node and decend for more
|
// if touch_triggers, touch all entities at this node and descend for more
|
||||||
if (touch_triggers)
|
if (touch_triggers)
|
||||||
SV_TouchLinks (ent, sv_areanodes);
|
SV_TouchLinks (ent, sv_areanodes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue