From c55f11d8b9168facc4bb9a652879e8706faec987 Mon Sep 17 00:00:00 2001
From: zturtleman
Date: Sun, 3 Dec 2017 10:09:52 +0000
Subject: [PATCH] ioquake3 resync to revision 3393 from 3385.
OpenGL2: Use ri.Error instead of Com_Error in tr_vbo.c
Fix Team Arena server refresh time format
Fix -1 (unlimited) ammo decreasing ammo time remaining
Correct spelling mistakes
Fix invalid model frame developer warnings in Team Arena
---
engine/Makefile | 2 +-
engine/code/botlib/aasfile.h | 2 +-
engine/code/botlib/be_aas_bspq3.c | 2 +-
engine/code/botlib/be_aas_cluster.c | 6 ++---
engine/code/botlib/be_aas_main.c | 2 +-
engine/code/botlib/be_aas_reach.c | 6 ++---
engine/code/botlib/be_aas_sample.c | 6 ++---
engine/code/botlib/be_ai_chat.c | 4 ++--
engine/code/botlib/be_ai_gen.c | 2 +-
engine/code/botlib/be_ai_move.c | 6 ++---
engine/code/botlib/be_ai_weight.c | 2 +-
engine/code/botlib/be_ai_weight.h | 2 +-
engine/code/botlib/l_script.c | 4 ++--
engine/code/cgame/cg_local.h | 8 +++----
engine/code/cgame/cg_main.c | 2 +-
engine/code/cgame/cg_players.c | 6 ++++-
engine/code/cgame/cg_playerstate.c | 3 +++
engine/code/cgame/cg_public.h | 2 +-
engine/code/cgame/cg_servercmds.c | 2 +-
engine/code/cgame/cg_snapshot.c | 2 +-
engine/code/cgame/cg_view.c | 2 +-
engine/code/cgame/cg_weapons.c | 2 +-
engine/code/client/cl_cgame.c | 4 ++--
engine/code/client/cl_input.c | 2 +-
engine/code/client/cl_keys.c | 8 +++----
engine/code/client/cl_main.c | 8 +++----
engine/code/client/snd_adpcm.c | 2 +-
engine/code/client/snd_dma.c | 2 +-
engine/code/client/snd_mix.c | 2 +-
engine/code/game/ai_dmnet.c | 2 +-
engine/code/game/ai_dmq3.c | 4 ++--
engine/code/game/ai_dmq3.h | 2 +-
engine/code/game/ai_main.c | 2 +-
engine/code/game/ai_team.c | 8 +++----
engine/code/game/bg_lib.c | 2 +-
engine/code/game/bg_pmove.c | 4 ++--
engine/code/game/bg_public.h | 4 ++--
engine/code/game/g_active.c | 4 ++--
engine/code/game/g_client.c | 6 ++---
engine/code/game/g_cmds.c | 6 ++---
engine/code/game/g_items.c | 2 +-
engine/code/game/g_missile.c | 2 +-
engine/code/game/g_mover.c | 8 +++----
engine/code/game/g_spawn.c | 2 +-
engine/code/game/g_target.c | 2 +-
engine/code/game/g_trigger.c | 2 +-
engine/code/game/g_weapon.c | 4 ++--
engine/code/q3_ui/ui_atoms.c | 2 +-
engine/code/q3_ui/ui_local.h | 2 +-
engine/code/q3_ui/ui_playermodel.c | 8 +++----
engine/code/q3_ui/ui_qmenu.c | 28 +++++++++++------------
engine/code/qcommon/cm_patch.c | 14 ++++++------
engine/code/qcommon/cm_polylib.c | 6 ++---
engine/code/qcommon/cm_trace.c | 16 ++++++-------
engine/code/qcommon/cmd.c | 4 ++--
engine/code/qcommon/common.c | 12 +++++-----
engine/code/qcommon/files.c | 6 ++---
engine/code/qcommon/q_shared.h | 4 ++--
engine/code/qcommon/qcommon.h | 2 +-
engine/code/qcommon/surfaceflags.h | 2 +-
engine/code/qcommon/unzip.c | 6 ++---
engine/code/qcommon/unzip.h | 4 ++--
engine/code/qcommon/vm_powerpc.c | 4 ++--
engine/code/renderercommon/tr_image_png.c | 4 ++--
engine/code/renderercommon/tr_public.h | 2 +-
engine/code/renderercommon/tr_types.h | 2 +-
engine/code/renderergl1/tr_backend.c | 4 ++--
engine/code/renderergl1/tr_bsp.c | 2 +-
engine/code/renderergl1/tr_image.c | 4 ++--
engine/code/renderergl1/tr_light.c | 4 ++--
engine/code/renderergl1/tr_local.h | 4 ++--
engine/code/renderergl1/tr_shade.c | 6 ++---
engine/code/renderergl1/tr_shade_calc.c | 4 ++--
engine/code/renderergl1/tr_shader.c | 12 +++++-----
engine/code/renderergl1/tr_surface.c | 4 ++--
engine/code/renderergl2/tr_backend.c | 4 ++--
engine/code/renderergl2/tr_bsp.c | 2 +-
engine/code/renderergl2/tr_fbo.c | 2 +-
engine/code/renderergl2/tr_image.c | 4 ++--
engine/code/renderergl2/tr_light.c | 4 ++--
engine/code/renderergl2/tr_local.h | 2 +-
engine/code/renderergl2/tr_shade.c | 6 ++---
engine/code/renderergl2/tr_shade_calc.c | 2 +-
engine/code/renderergl2/tr_shader.c | 8 +++----
engine/code/renderergl2/tr_vbo.c | 2 +-
engine/code/server/server.h | 4 ++--
engine/code/server/sv_init.c | 6 ++---
engine/code/server/sv_main.c | 2 +-
engine/code/server/sv_snapshot.c | 2 +-
engine/code/sys/sys_unix.c | 2 +-
engine/code/tools/asm/cmdlib.c | 4 ++--
engine/code/tools/asm/cmdlib.h | 2 +-
engine/code/tools/asm/notes.txt | 2 +-
engine/code/tools/asm/q3asm.c | 8 +++----
engine/code/tools/lcc/doc/4.html | 2 +-
engine/code/tools/lcc/etc/lcc.c | 2 +-
engine/code/tools/lcc/src/enode.c | 2 +-
engine/code/tools/lcc/src/error.c | 2 +-
engine/code/tools/lcc/src/gen.c | 2 +-
engine/code/tools/lcc/src/init.c | 2 +-
engine/code/tools/lcc/src/tree.c | 2 +-
engine/code/ui/ui_local.h | 2 +-
engine/code/ui/ui_main.c | 4 ++--
engine/code/ui/ui_shared.c | 2 +-
engine/docs/ChangeLog | 18 +++++++--------
engine/docs/opengl2-readme.md | 2 +-
engine/make-macosx-ub.sh | 2 +-
engine/make-macosx.sh | 2 +-
108 files changed, 231 insertions(+), 224 deletions(-)
diff --git a/engine/Makefile b/engine/Makefile
index bc960f25..fd5c622c 100644
--- a/engine/Makefile
+++ b/engine/Makefile
@@ -44,7 +44,7 @@ ifndef BUILD_DEFINES
endif
# ioquake3 svn version that this is based on
-IOQ3_REVISION = 3385
+IOQ3_REVISION = 3393
#############################################################################
#
diff --git a/engine/code/botlib/aasfile.h b/engine/code/botlib/aasfile.h
index a0593df7..f23dbab1 100644
--- a/engine/code/botlib/aasfile.h
+++ b/engine/code/botlib/aasfile.h
@@ -191,7 +191,7 @@ typedef struct aas_edge_s
//edge index, negative if vertexes are reversed
typedef int aas_edgeindex_t;
-//a face bounds an area, often it will also seperate two areas
+//a face bounds an area, often it will also separate two areas
typedef struct aas_face_s
{
int planenum; //number of the plane this face is in
diff --git a/engine/code/botlib/be_aas_bspq3.c b/engine/code/botlib/be_aas_bspq3.c
index a6b6edb0..34862bcb 100644
--- a/engine/code/botlib/be_aas_bspq3.c
+++ b/engine/code/botlib/be_aas_bspq3.c
@@ -70,7 +70,7 @@ typedef struct bsp_entity_s
bsp_epair_t *epairs;
} bsp_entity_t;
-//id Sofware BSP data
+//id Software BSP data
typedef struct bsp_s
{
//true when bsp file is loaded
diff --git a/engine/code/botlib/be_aas_cluster.c b/engine/code/botlib/be_aas_cluster.c
index c2fed970..f23d7a67 100644
--- a/engine/code/botlib/be_aas_cluster.c
+++ b/engine/code/botlib/be_aas_cluster.c
@@ -1168,7 +1168,7 @@ void AAS_RemoveNotClusterClosingPortals(void)
if (aasworld.areasettings[otherareanum].contents & AREACONTENTS_CLUSTERPORTAL) continue;
//if the area already has a cluster set
if (aasworld.areasettings[otherareanum].cluster) continue;
- //another cluster is seperated by this portal
+ //another cluster is separated by this portal
numseperatedclusters++;
//flood the cluster
AAS_FloodCluster_r(otherareanum, numseperatedclusters);
@@ -1185,13 +1185,13 @@ void AAS_RemoveNotClusterClosingPortals(void)
if (aasworld.areasettings[otherareanum].contents & AREACONTENTS_CLUSTERPORTAL) continue;
//if the area already has a cluster set
if (aasworld.areasettings[otherareanum].cluster) continue;
- //another cluster is seperated by this portal
+ //another cluster is separated by this portal
numseperatedclusters++;
//flood the cluster
AAS_FloodCluster_r(otherareanum, numseperatedclusters);
AAS_FloodClusterReachabilities(numseperatedclusters);
} //end for
- //a portal must seperate no more and no less than 2 clusters
+ //a portal must separate no more and no less than 2 clusters
if (numseperatedclusters != 2)
{
aasworld.areasettings[i].contents &= ~AREACONTENTS_CLUSTERPORTAL;
diff --git a/engine/code/botlib/be_aas_main.c b/engine/code/botlib/be_aas_main.c
index bd55fda1..88dfc68b 100644
--- a/engine/code/botlib/be_aas_main.c
+++ b/engine/code/botlib/be_aas_main.c
@@ -241,7 +241,7 @@ int AAS_LoadFiles(const char *mapname)
return BLERR_NOERROR;
} //end of the function AAS_LoadFiles
//===========================================================================
-// called everytime a map changes
+// called every time a map changes
//
// Parameter: -
// Returns: -
diff --git a/engine/code/botlib/be_aas_reach.c b/engine/code/botlib/be_aas_reach.c
index 62acd477..0124bfd2 100644
--- a/engine/code/botlib/be_aas_reach.c
+++ b/engine/code/botlib/be_aas_reach.c
@@ -439,7 +439,7 @@ int AAS_BestReachableArea(vec3_t origin, vec3_t mins, vec3_t maxs, vec3_t goalor
//VectorSubtract(absmaxs, bbmins, absmaxs);
//link an invalid (-1) entity
areas = AAS_LinkEntityClientBBox(absmins, absmaxs, -1, PRESENCE_CROUCH);
- //get the reachable link arae
+ //get the reachable link area
areanum = AAS_BestReachableLinkArea(areas);
//unlink the invalid entity
AAS_UnlinkFromAreas(areas);
@@ -1416,7 +1416,7 @@ int AAS_Reachability_Step_Barrier_WaterJump_WalkOffLedge(int area1num, int area2
//if there IS water the sv_maxwaterjump height below the bestend point
if (aasworld.areasettings[AAS_PointAreaNum(testpoint)].areaflags & AREA_LIQUID)
{
- //don't create rediculous water jump reachabilities from areas very far below
+ //don't create ridiculous water jump reachabilities from areas very far below
//the water surface
if (water_bestdist < aassettings.phys_maxwaterjump + 24)
{
@@ -3054,7 +3054,7 @@ void AAS_Reachability_Elevator(void)
bottomorg[2] += 24;
} //end else
//look at adjacent areas around the top of the plat
- //make larger steps to outside the plat everytime
+ //make larger steps to outside the plat every time
for (n = 0; n < 3; n++)
{
for (k = 0; k < 3; k++)
diff --git a/engine/code/botlib/be_aas_sample.c b/engine/code/botlib/be_aas_sample.c
index 095641a4..9ca18f46 100644
--- a/engine/code/botlib/be_aas_sample.c
+++ b/engine/code/botlib/be_aas_sample.c
@@ -688,7 +688,7 @@ aas_trace_t AAS_TraceClientBBox(vec3_t start, vec3_t end, int presencetype,
side = front < 0;
//first put the end part of the line on the stack (back side)
VectorCopy(cur_mid, tstack_p->start);
- //not necesary to store because still on stack
+ //not necessary to store because still on stack
//VectorCopy(cur_end, tstack_p->end);
tstack_p->planenum = aasnode->planenum;
tstack_p->nodenum = aasnode->children[!side];
@@ -874,7 +874,7 @@ int AAS_TraceAreas(vec3_t start, vec3_t end, int *areas, vec3_t *points, int max
side = front < 0;
//first put the end part of the line on the stack (back side)
VectorCopy(cur_mid, tstack_p->start);
- //not necesary to store because still on stack
+ //not necessary to store because still on stack
//VectorCopy(cur_end, tstack_p->end);
tstack_p->planenum = aasnode->planenum;
tstack_p->nodenum = aasnode->children[!side];
@@ -959,7 +959,7 @@ qboolean AAS_InsideFace(aas_face_t *face, vec3_t pnormal, vec3_t point, float ep
//edge) and through both the edge vector and the normal vector
//of the plane
AAS_OrthogonalToVectors(edgevec, pnormal, sepnormal);
- //check on wich side of the above plane the point is
+ //check on which side of the above plane the point is
//this is done by checking the sign of the dot product of the
//vector orthogonal vector from above and the vector from the
//origin (first vertex of edge) to the point
diff --git a/engine/code/botlib/be_ai_chat.c b/engine/code/botlib/be_ai_chat.c
index 2413706b..abbcdc09 100644
--- a/engine/code/botlib/be_ai_chat.c
+++ b/engine/code/botlib/be_ai_chat.c
@@ -553,11 +553,11 @@ void StringReplaceWords(char *string, char *synonym, char *replacement)
//find the synonym in the string
str = StringContainsWord(string, synonym, qfalse);
- //if the synonym occured in the string
+ //if the synonym occurred in the string
while(str)
{
//if the synonym isn't part of the replacement which is already in the string
- //usefull for abreviations
+ //useful for abbreviations
str2 = StringContainsWord(string, replacement, qfalse);
while(str2)
{
diff --git a/engine/code/botlib/be_ai_gen.c b/engine/code/botlib/be_ai_gen.c
index 5839f8a1..3f27d9c3 100644
--- a/engine/code/botlib/be_ai_gen.c
+++ b/engine/code/botlib/be_ai_gen.c
@@ -62,7 +62,7 @@ int GeneticSelection(int numranks, float *rankings)
} //end for
if (sum > 0)
{
- //select a bot where the ones with the higest rankings have
+ //select a bot where the ones with the highest rankings have
//the highest chance of being selected
//sum *= random();
for (i = 0; i < numranks; i++)
diff --git a/engine/code/botlib/be_ai_move.c b/engine/code/botlib/be_ai_move.c
index 42232d65..814089ff 100644
--- a/engine/code/botlib/be_ai_move.c
+++ b/engine/code/botlib/be_ai_move.c
@@ -1605,7 +1605,7 @@ bot_moveresult_t BotTravel_WalkOffLedge(bot_movestate_t *ms, aas_reachability_t
VectorSubtract(reach->start, ms->origin, dir);
VectorNormalize(dir);
BotCheckBlocked(ms, dir, qtrue, &result);
- //if the reachability start and end are practially above each other
+ //if the reachability start and end are practically above each other
VectorSubtract(reach->end, reach->start, dir);
dir[2] = 0;
reachhordist = VectorLength(dir);
@@ -2744,7 +2744,7 @@ bot_moveresult_t BotTravel_RocketJump(bot_movestate_t *ms, aas_reachability_t *r
result.ideal_viewangles[PITCH] = 90;
//set the view angles directly
EA_View(ms->client, result.ideal_viewangles);
- //view is important for the movment
+ //view is important for the movement
result.flags |= MOVERESULT_MOVEMENTVIEWSET;
//select the rocket launcher
EA_SelectWeapon(ms->client, (int) weapindex_rocketlauncher->value);
@@ -2804,7 +2804,7 @@ bot_moveresult_t BotTravel_BFGJump(bot_movestate_t *ms, aas_reachability_t *reac
result.ideal_viewangles[PITCH] = 90;
//set the view angles directly
EA_View(ms->client, result.ideal_viewangles);
- //view is important for the movment
+ //view is important for the movement
result.flags |= MOVERESULT_MOVEMENTVIEWSET;
//select the rocket launcher
EA_SelectWeapon(ms->client, (int) weapindex_bfg10k->value);
diff --git a/engine/code/botlib/be_ai_weight.c b/engine/code/botlib/be_ai_weight.c
index a6a478e3..1d73b479 100644
--- a/engine/code/botlib/be_ai_weight.c
+++ b/engine/code/botlib/be_ai_weight.c
@@ -726,7 +726,7 @@ void EvolveFuzzySeperator_r(fuzzyseperator_t *fs)
//every once in a while an evolution leap occurs, mutation
if (random() < 0.01) fs->weight += crandom() * (fs->maxweight - fs->minweight);
else fs->weight += crandom() * (fs->maxweight - fs->minweight) * 0.5;
- //modify bounds if necesary because of mutation
+ //modify bounds if necessary because of mutation
if (fs->weight < fs->minweight) fs->minweight = fs->weight;
else if (fs->weight > fs->maxweight) fs->maxweight = fs->weight;
} //end else if
diff --git a/engine/code/botlib/be_ai_weight.h b/engine/code/botlib/be_ai_weight.h
index fb1c8853..283fdd06 100644
--- a/engine/code/botlib/be_ai_weight.h
+++ b/engine/code/botlib/be_ai_weight.h
@@ -64,7 +64,7 @@ typedef struct weightconfig_s
weightconfig_t *ReadWeightConfig(char *filename);
//free a weight configuration
void FreeWeightConfig(weightconfig_t *config);
-//writes a weight configuration, returns true if successfull
+//writes a weight configuration, returns true if successful
qboolean WriteWeightConfig(char *filename, weightconfig_t *config);
//find the fuzzy weight with the given name
int FindFuzzyWeight(weightconfig_t *wc, char *name);
diff --git a/engine/code/botlib/l_script.c b/engine/code/botlib/l_script.c
index c1c3266a..c9b68091 100644
--- a/engine/code/botlib/l_script.c
+++ b/engine/code/botlib/l_script.c
@@ -218,7 +218,7 @@ char *PunctuationFromNum(script_t *script, int num)
{
if (script->punctuations[i].n == num) return script->punctuations[i].p;
} //end for
- return "unkown punctuation";
+ return "unknown punctuation";
} //end of the function PunctuationFromNum
//===========================================================================
//
@@ -836,7 +836,7 @@ int PS_ReadPrimitive(script_t *script, token_t *token)
token->string[len] = 0;
//copy the token into the script structure
Com_Memcpy(&script->token, token, sizeof(token_t));
- //primitive reading successfull
+ //primitive reading successful
return 1;
} //end of the function PS_ReadPrimitive
//============================================================================
diff --git a/engine/code/cgame/cg_local.h b/engine/code/cgame/cg_local.h
index 85e1dfb1..eab38f1e 100644
--- a/engine/code/cgame/cg_local.h
+++ b/engine/code/cgame/cg_local.h
@@ -266,7 +266,7 @@ typedef struct centity_s {
//======================================================================
// local entities are created as a result of events or predicted actions,
-// and live independantly from all server transmitted entities
+// and live independently from all server transmitted entities
typedef struct markPoly_s {
struct markPoly_s *prevMark, *nextMark;
@@ -599,7 +599,7 @@ typedef struct {
qboolean loading; // don't defer players at initial startup
qboolean intermissionStarted; // don't play voice rewards, because game will end shortly
- // there are only one or two snapshot_t that are relevent at a time
+ // there are only one or two snapshot_t that are relevant at a time
int latestSnapshotNum; // the number of snapshots the client system has received
int latestSnapshotTime; // the time from latestSnapshotNum, so we don't need to read the snapshot yet
@@ -755,7 +755,7 @@ typedef struct {
int itemPickup;
int itemPickupTime;
- int itemPickupBlendTime; // the pulse around the crosshair is timed seperately
+ int itemPickupBlendTime; // the pulse around the crosshair is timed separately
int weaponSelectTime;
int weaponAnimation;
@@ -2116,7 +2116,7 @@ void trap_GetGlconfig( glconfig_t *glconfig );
void trap_GetGameState( gameState_t *gamestate );
// cgame will poll each frame to see if a newer snapshot has arrived
-// that it is interested in. The time is returned seperately so that
+// that it is interested in. The time is returned separately so that
// snapshot latency can be calculated.
void trap_GetCurrentSnapshotNumber( int *snapshotNumber, int *serverTime );
diff --git a/engine/code/cgame/cg_main.c b/engine/code/cgame/cg_main.c
index a1167235..aaaaefb3 100644
--- a/engine/code/cgame/cg_main.c
+++ b/engine/code/cgame/cg_main.c
@@ -651,7 +651,7 @@ static void CG_RegisterItemSounds( int itemNum ) {
trap_S_RegisterSound( item->pickup_sound, qfalse );
}
- // parse the space seperated precache string for other media
+ // parse the space separated precache string for other media
s = item->sounds;
if (!s || !s[0])
return;
diff --git a/engine/code/cgame/cg_players.c b/engine/code/cgame/cg_players.c
index acbd7cb3..109956e6 100644
--- a/engine/code/cgame/cg_players.c
+++ b/engine/code/cgame/cg_players.c
@@ -1792,7 +1792,7 @@ static void CG_AddPainTwitch( centity_t *cent, vec3_t torsoAngles ) {
===============
CG_PlayerAngles
-Handles seperate torso motion
+Handles separate torso motion
legs pivot based on direction of movement
@@ -3678,6 +3678,8 @@ void CG_Player( centity_t *cent ) {
memcpy(&powerup, &torso, sizeof(torso));
powerup.hModel = cgs.media.invulnerabilityPowerupModel;
+ powerup.frame = 0;
+ powerup.oldframe = 0;
powerup.customSkin = 0;
// always draw
powerup.renderfx &= ~RF_THIRD_PERSON;
@@ -3702,6 +3704,8 @@ void CG_Player( centity_t *cent ) {
if ( ci->medkitUsageTime && t < 500 ) {
memcpy(&powerup, &torso, sizeof(torso));
powerup.hModel = cgs.media.medkitUsageModel;
+ powerup.frame = 0;
+ powerup.oldframe = 0;
powerup.customSkin = 0;
// always draw
powerup.renderfx &= ~RF_THIRD_PERSON;
diff --git a/engine/code/cgame/cg_playerstate.c b/engine/code/cgame/cg_playerstate.c
index c5ce6f4f..9be14dbb 100644
--- a/engine/code/cgame/cg_playerstate.c
+++ b/engine/code/cgame/cg_playerstate.c
@@ -48,6 +48,9 @@ void CG_CheckAmmo( void ) {
if ( ! ( weapons & ( 1 << i ) ) ) {
continue;
}
+ if ( cg.snap->ps.ammo[i] < 0 ) {
+ continue;
+ }
switch ( i ) {
case WP_ROCKET_LAUNCHER:
case WP_GRENADE_LAUNCHER:
diff --git a/engine/code/cgame/cg_public.h b/engine/code/cgame/cg_public.h
index 46b30461..b1469ffc 100644
--- a/engine/code/cgame/cg_public.h
+++ b/engine/code/cgame/cg_public.h
@@ -207,7 +207,7 @@ typedef enum {
CG_SHUTDOWN,
// void (*CG_Shutdown)( void );
- // oportunity to flush and close any open files
+ // opportunity to flush and close any open files
CG_CONSOLE_COMMAND,
// qboolean (*CG_ConsoleCommand)( void );
diff --git a/engine/code/cgame/cg_servercmds.c b/engine/code/cgame/cg_servercmds.c
index ca0f07e3..8d208a08 100644
--- a/engine/code/cgame/cg_servercmds.c
+++ b/engine/code/cgame/cg_servercmds.c
@@ -22,7 +22,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
//
// cg_servercmds.c -- reliably sequenced text commands sent by the server
-// these are processed at snapshot transition time, so there will definately
+// these are processed at snapshot transition time, so there will definitely
// be a valid snapshot this frame
#include "cg_local.h"
diff --git a/engine/code/cgame/cg_snapshot.c b/engine/code/cgame/cg_snapshot.c
index b4864d51..3eaed2e2 100644
--- a/engine/code/cgame/cg_snapshot.c
+++ b/engine/code/cgame/cg_snapshot.c
@@ -142,7 +142,7 @@ static void CG_TransitionSnapshot( void ) {
// execute any server string commands before transitioning entities
CG_ExecuteNewServerCommands( cg.nextSnap->serverCommandSequence );
- // if we had a map_restart, set everthing with initial
+ // if we had a map_restart, set everything with initial
if ( cg.mapRestart ) {
}
diff --git a/engine/code/cgame/cg_view.c b/engine/code/cgame/cg_view.c
index 6a2c0381..ec52a81e 100644
--- a/engine/code/cgame/cg_view.c
+++ b/engine/code/cgame/cg_view.c
@@ -43,7 +43,7 @@ Testmodel will create a fake entity 100 units in front of the current view
position, directly facing the viewer. It will remain immobile, so you can
move around it to view it from different angles.
-Testgun will cause the model to follow the player around and supress the real
+Testgun will cause the model to follow the player around and suppress the real
view weapon model. The default frame 0 of most guns is completely off screen,
so you will probably have to cycle a couple frames to see it.
diff --git a/engine/code/cgame/cg_weapons.c b/engine/code/cgame/cg_weapons.c
index 5d52de98..59a90ef4 100644
--- a/engine/code/cgame/cg_weapons.c
+++ b/engine/code/cgame/cg_weapons.c
@@ -1355,7 +1355,7 @@ void CG_AddPlayerWeapon( refEntity_t *parent, playerState_t *ps, centity_t *cent
nonPredictedCent = &cg_entities[cent->currentState.clientNum];
// if the index of the nonPredictedCent is not the same as the clientNum
- // then this is a fake player (like on teh single player podiums), so
+ // then this is a fake player (like on the single player podiums), so
// go ahead and use the cent
if( ( nonPredictedCent - cg_entities ) != cent->currentState.clientNum ) {
nonPredictedCent = cent;
diff --git a/engine/code/client/cl_cgame.c b/engine/code/client/cl_cgame.c
index 157c7bd9..613d0842 100644
--- a/engine/code/client/cl_cgame.c
+++ b/engine/code/client/cl_cgame.c
@@ -341,7 +341,7 @@ rescan:
// the clientLevelShot command is used during development
// to generate 128*128 screenshots from the intermission
// point of levels for the menu system to use
- // we pass it along to the cgame to make apropriate adjustments,
+ // we pass it along to the cgame to make appropriate adjustments,
// but we also clear the console and notify lines here
if ( !strcmp( cmd, "clientLevelShot" ) ) {
// don't do it if we aren't running the server locally,
@@ -1026,7 +1026,7 @@ void CL_SetCGameTime( void ) {
}
// if we are playing a demo back, we can just keep reading
- // messages from the demo file until the cgame definately
+ // messages from the demo file until the cgame definitely
// has valid snapshots to interpolate between
// a timedemo will always use a deterministic set of time samples
diff --git a/engine/code/client/cl_input.c b/engine/code/client/cl_input.c
index 45ca725e..ab7de816 100644
--- a/engine/code/client/cl_input.c
+++ b/engine/code/client/cl_input.c
@@ -320,7 +320,7 @@ void CL_KeyMove( usercmd_t *cmd ) {
//
// adjust for speed key / running
- // the walking flag is to keep animations consistant
+ // the walking flag is to keep animations consistent
// even during acceleration and develeration
//
if ( in_speed.active ^ cl_run->integer ) {
diff --git a/engine/code/client/cl_keys.c b/engine/code/client/cl_keys.c
index 7ddea0c7..2fb2c1ca 100644
--- a/engine/code/client/cl_keys.c
+++ b/engine/code/client/cl_keys.c
@@ -177,7 +177,7 @@ keyname_t keynames[] =
{"PAUSE", K_PAUSE},
- {"SEMICOLON", ';'}, // because a raw semicolon seperates commands
+ {"SEMICOLON", ';'}, // because a raw semicolon separates commands
{"WORLD_0", K_WORLD_0},
{"WORLD_1", K_WORLD_1},
@@ -919,7 +919,7 @@ void Key_SetBinding( int keynum, const char *binding ) {
keys[keynum].binding = CopyString( binding );
// consider this like modifying an archived cvar, so the
- // file write will be triggered at the next oportunity
+ // file write will be triggered at the next opportunity
cvar_modifiedFlags |= CVAR_ARCHIVE;
}
@@ -1305,7 +1305,7 @@ void CL_KeyDownEvent( int key, unsigned time )
// send the bound action
CL_ParseBinding( key, qtrue, time );
- // distribute the key down event to the apropriate handler
+ // distribute the key down event to the appropriate handler
if ( Key_GetCatcher( ) & KEYCATCH_CONSOLE ) {
Console_Key( key );
} else if ( Key_GetCatcher( ) & KEYCATCH_UI ) {
@@ -1387,7 +1387,7 @@ void CL_CharEvent( int key ) {
return;
}
- // distribute the key down event to the apropriate handler
+ // distribute the key down event to the appropriate handler
if ( Key_GetCatcher( ) & KEYCATCH_CONSOLE )
{
Field_CharEvent( &g_consoleField, key );
diff --git a/engine/code/client/cl_main.c b/engine/code/client/cl_main.c
index 62dcf528..fde9fa10 100644
--- a/engine/code/client/cl_main.c
+++ b/engine/code/client/cl_main.c
@@ -573,7 +573,7 @@ CLIENT RELIABLE COMMAND COMMUNICATION
======================
CL_AddReliableCommand
-The given command will be transmitted to the server, and is gauranteed to
+The given command will be transmitted to the server, and is guaranteed to
not have future usercmd_t executed before it is executed
======================
*/
@@ -1960,7 +1960,7 @@ void CL_Vid_Restart_f( void ) {
CL_ShutdownCGame();
// shutdown the renderer and clear the renderer interface
CL_ShutdownRef();
- // client is no longer pure untill new checksums are sent
+ // client is no longer pure until new checksums are sent
CL_ResetPureClientAtServer();
// clear pak references
FS_ClearPakReferences( FS_UI_REF | FS_CGAME_REF );
@@ -1971,7 +1971,7 @@ void CL_Vid_Restart_f( void ) {
cls.cgameStarted = qfalse;
cls.soundRegistered = qfalse;
- // unpause so the cgame definately gets a snapshot and renders a frame
+ // unpause so the cgame definitely gets a snapshot and renders a frame
Cvar_Set("cl_paused", "0");
// initialize the renderer interface
@@ -3301,7 +3301,7 @@ void CL_InitRef( void ) {
re = *ret;
- // unpause so the cgame definately gets a snapshot and renders a frame
+ // unpause so the cgame definitely gets a snapshot and renders a frame
Cvar_Set( "cl_paused", "0" );
}
diff --git a/engine/code/client/snd_adpcm.c b/engine/code/client/snd_adpcm.c
index 4e138726..1a114edf 100644
--- a/engine/code/client/snd_adpcm.c
+++ b/engine/code/client/snd_adpcm.c
@@ -25,7 +25,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/*
** Intel/DVI ADPCM coder/decoder.
**
-** The algorithm for this coder was taken from the IMA Compatability Project
+** The algorithm for this coder was taken from the IMA Compatibility Project
** proceedings, Vol 2, Number 2; May 1992.
**
** Version 1.2, 18-Dec-92.
diff --git a/engine/code/client/snd_dma.c b/engine/code/client/snd_dma.c
index 83d0d33b..1dc162ab 100644
--- a/engine/code/client/snd_dma.c
+++ b/engine/code/client/snd_dma.c
@@ -432,7 +432,7 @@ void S_SpatializeOrigin (vec3_t origin, int master_vol, int *left_vol, int *righ
const float dist_mult = SOUND_ATTENUATE;
- // calculate stereo seperation and distance attenuation
+ // calculate stereo separation and distance attenuation
VectorSubtract(origin, listener_origin, source_vec);
dist = VectorNormalize(source_vec);
diff --git a/engine/code/client/snd_mix.c b/engine/code/client/snd_mix.c
index 4418d22d..53230812 100644
--- a/engine/code/client/snd_mix.c
+++ b/engine/code/client/snd_mix.c
@@ -515,7 +515,7 @@ static void S_PaintChannelFrom16_scalar( channel_t *ch, const sfx_t *sc, int cou
static void S_PaintChannelFrom16( channel_t *ch, const sfx_t *sc, int count, int sampleOffset, int bufferOffset ) {
#if idppc_altivec
if (com_altivec->integer) {
- // must be in a seperate function or G3 systems will crash.
+ // must be in a separate function or G3 systems will crash.
S_PaintChannelFrom16_altivec( ch, sc, count, sampleOffset, bufferOffset );
return;
}
diff --git a/engine/code/game/ai_dmnet.c b/engine/code/game/ai_dmnet.c
index 6d26ddb1..5da0324f 100644
--- a/engine/code/game/ai_dmnet.c
+++ b/engine/code/game/ai_dmnet.c
@@ -333,7 +333,7 @@ int BotGetItemLongTermGoal(bot_state_t *bs, int tfl, bot_goal_t *goal) {
==================
BotGetLongTermGoal
-we could also create a seperate AI node for every long term goal type
+we could also create a separate AI node for every long term goal type
however this saves us a lot of code
==================
*/
diff --git a/engine/code/game/ai_dmq3.c b/engine/code/game/ai_dmq3.c
index f4ed4f19..5d24b5c1 100644
--- a/engine/code/game/ai_dmq3.c
+++ b/engine/code/game/ai_dmq3.c
@@ -2807,7 +2807,7 @@ bot_moveresult_t BotAttackMove(bot_state_t *bs, int tfl) {
// bs->flags ^= BFL_STRAFERIGHT;
// bs->attackstrafe_time = 0;
}
- //bot couldn't do any usefull movement
+ //bot couldn't do any useful movement
// bs->attackchase_time = AAS_Time() + 6;
return moveresult;
}
@@ -4960,7 +4960,7 @@ void BotCheckEvents(bot_state_t *bs, entityState_t *state) {
else*/
#ifdef MISSIONPACK
if (!strcmp(buf, "sound/items/kamikazerespawn.wav" )) {
- //the kamikaze respawned so dont avoid it
+ //the kamikaze respawned so don't avoid it
BotDontAvoid(bs, "Kamikaze");
}
else
diff --git a/engine/code/game/ai_dmq3.h b/engine/code/game/ai_dmq3.h
index 0182afc1..93060a82 100644
--- a/engine/code/game/ai_dmq3.h
+++ b/engine/code/game/ai_dmq3.h
@@ -137,7 +137,7 @@ int BotPopFromActivateGoalStack(bot_state_t *bs);
void BotClearActivateGoalStack(bot_state_t *bs);
//returns the team the bot is in
int BotTeam(bot_state_t *bs);
-//retuns the opposite team of the bot
+//returns the opposite team of the bot
int BotOppositeTeam(bot_state_t *bs);
//returns the flag the bot is carrying (CTFFLAG_?)
int BotCTFCarryingFlag(bot_state_t *bs);
diff --git a/engine/code/game/ai_main.c b/engine/code/game/ai_main.c
index 1713bc6a..33ce45b5 100644
--- a/engine/code/game/ai_main.c
+++ b/engine/code/game/ai_main.c
@@ -1292,7 +1292,7 @@ int BotAISetupClient(int client, struct bot_settings_s *settings, qboolean resta
if (restart) {
BotReadSessionData(bs);
}
- //bot has been setup succesfully
+ //bot has been setup successfully
return qtrue;
}
diff --git a/engine/code/game/ai_team.c b/engine/code/game/ai_team.c
index f750eb8c..5d45f735 100644
--- a/engine/code/game/ai_team.c
+++ b/engine/code/game/ai_team.c
@@ -1017,7 +1017,7 @@ void Bot1FCTFOrders_FlagAtCenter(bot_state_t *bs) {
}
}
}
- else { //agressive
+ else { //aggressive
//different orders based on the number of team mates
switch(numteammates) {
case 1: break;
@@ -1203,7 +1203,7 @@ void Bot1FCTFOrders_TeamHasFlag(bot_state_t *bs) {
}
}
}
- else { //agressive
+ else { //aggressive
//different orders based on the number of team mates
switch(numteammates) {
case 1: break;
@@ -1367,7 +1367,7 @@ void Bot1FCTFOrders_EnemyHasFlag(bot_state_t *bs) {
}
}
}
- else { //agressive
+ else { //aggressive
//different orders based on the number of team mates
switch(numteammates) {
case 1: break;
@@ -1514,7 +1514,7 @@ void Bot1FCTFOrders_EnemyDroppedFlag(bot_state_t *bs) {
}
}
}
- else { //agressive
+ else { //aggressive
//different orders based on the number of team mates
switch(numteammates) {
case 1: break;
diff --git a/engine/code/game/bg_lib.c b/engine/code/game/bg_lib.c
index 8aec2a5b..9a92401e 100644
--- a/engine/code/game/bg_lib.c
+++ b/engine/code/game/bg_lib.c
@@ -1559,7 +1559,7 @@ double fabs( double x ) {
* probably requires libm on most operating systems. Don't yet
* support the exponent (e,E) and sigfig (g,G). Also, fmtint()
* was pretty badly broken, it just wasn't being exercised in ways
- * which showed it, so that's been fixed. Also, formated the code
+ * which showed it, so that's been fixed. Also, formatted the code
* to mutt conventions, and removed dead code left over from the
* original. Also, there is now a builtin-test, just compile with:
* gcc -DTEST_SNPRINTF -o snprintf snprintf.c -lm
diff --git a/engine/code/game/bg_pmove.c b/engine/code/game/bg_pmove.c
index d40907bc..f419f904 100644
--- a/engine/code/game/bg_pmove.c
+++ b/engine/code/game/bg_pmove.c
@@ -972,7 +972,7 @@ static void PM_NoclipMove( void ) {
================
PM_FootstepForSurface
-Returns an event number apropriate for the groundsurface
+Returns an event number appropriate for the groundsurface
================
*/
// STONELANCE - removed function
@@ -1506,7 +1506,7 @@ static void PM_Footsteps( void ) {
old = pm->ps->bobCycle;
pm->ps->bobCycle = (int)( old + bobmove * pml.msec ) & 255;
- // if we just crossed a cycle boundary, play an apropriate footstep event
+ // if we just crossed a cycle boundary, play an appropriate footstep event
if ( ( ( old + 64 ) ^ ( pm->ps->bobCycle + 64 ) ) & 128 ) {
if ( pm->waterlevel == 0 ) {
// on ground will only play sounds if running
diff --git a/engine/code/game/bg_public.h b/engine/code/game/bg_public.h
index 13f94c6f..1f32c4cb 100644
--- a/engine/code/game/bg_public.h
+++ b/engine/code/game/bg_public.h
@@ -318,8 +318,8 @@ typedef enum {
STAT_DEAD_YAW, // look this direction when dead (FIXME: get rid of?)
STAT_CLIENTS_READY, // bit mask of clients wishing to exit the intermission (FIXME: configstring?)
// STONELANCE
-// STAT_MAX_HEALTH // health / armor limit, changable by handicap
- STAT_MAX_HEALTH, // health / armor limit, changable by handicap
+// STAT_MAX_HEALTH // health / armor limit, changeable by handicap
+ STAT_MAX_HEALTH, // health / armor limit, changeable by handicap
STAT_RPM,
STAT_GEAR,
STAT_DAMAGE_DEALT,
diff --git a/engine/code/game/g_active.c b/engine/code/game/g_active.c
index 0dac03f9..e7c7e0aa 100644
--- a/engine/code/game/g_active.c
+++ b/engine/code/game/g_active.c
@@ -158,7 +158,7 @@ void P_DamageFeedback( gentity_t *player ) {
*/
// END
- // play an apropriate pain sound
+ // play an appropriate pain sound
if ( (level.time > player->pain_debounce_time) && !(player->flags & FL_GODMODE) ) {
player->pain_debounce_time = level.time + 700;
G_AddEvent( player, EV_PAIN, player->health );
@@ -411,7 +411,7 @@ void G_TouchTriggers( gentity_t *ent ) {
}
}
- // use seperate code for determining if an item is picked up
+ // use separate code for determining if an item is picked up
// so you don't have to actually contact its bounding box
if ( hit->s.eType == ET_ITEM ) {
if ( !BG_PlayerTouchesItem( &ent->client->ps, &hit->s, level.time ) ) {
diff --git a/engine/code/game/g_client.c b/engine/code/game/g_client.c
index 4a38d00e..55e45767 100644
--- a/engine/code/game/g_client.c
+++ b/engine/code/game/g_client.c
@@ -58,7 +58,7 @@ void SP_info_player_deathmatch( gentity_t *ent ) {
}
/*QUAKED info_player_start (1 0 0) (-16 -16 -24) (16 16 32)
-equivelant to info_player_deathmatch
+equivalent to info_player_deathmatch
*/
void SP_info_player_start(gentity_t *ent) {
// STONELANCE
@@ -399,7 +399,7 @@ void InitBodyQue (void) {
=============
BodySink
-After sitting around for five seconds, fall into the ground and dissapear
+After sitting around for five seconds, fall into the ground and disappear
=============
*/
void BodySink( gentity_t *ent ) {
@@ -1193,7 +1193,7 @@ char *ClientConnect( int clientNum, qboolean firstTime, qboolean isBot ) {
}
G_ReadSessionData( client );
- // get and distribute relevent paramters
+ // get and distribute relevant parameters
G_LogPrintf( "ClientConnect: %i\n", clientNum );
ClientUserinfoChanged( clientNum );
diff --git a/engine/code/game/g_cmds.c b/engine/code/game/g_cmds.c
index 9aff656a..68cb395f 100644
--- a/engine/code/game/g_cmds.c
+++ b/engine/code/game/g_cmds.c
@@ -812,7 +812,7 @@ void SetTeam( gentity_t *ent, const char *s ) {
BroadcastTeamChange( client, oldTeam );
- // get and distribute relevent paramters
+ // get and distribute relevant parameters
ClientUserinfoChanged( clientNum );
// client hasn't spawned yet, they sent an early team command, teampref userinfo, or g_teamAutoJoin is enabled
@@ -1145,7 +1145,7 @@ void G_Say( gentity_t *ent, gentity_t *target, int mode, const char *chatText )
G_Printf( "%s%s\n", name, text);
}
- // send it to all the apropriate clients
+ // send it to all the appropriate clients
for (j = 0; j < level.maxclients; j++) {
other = &g_entities[j];
G_SayTo( ent, other, mode, color, name, text );
@@ -1290,7 +1290,7 @@ void G_Voice( gentity_t *ent, gentity_t *target, int mode, const char *id, qbool
G_Printf( "voice: %s %s\n", ent->client->pers.netname, id);
}
- // send it to all the apropriate clients
+ // send it to all the appropriate clients
for (j = 0; j < level.maxclients; j++) {
other = &g_entities[j];
G_VoiceTo( ent, other, mode, id, voiceonly );
diff --git a/engine/code/game/g_items.c b/engine/code/game/g_items.c
index 98a9586e..b1e706f1 100644
--- a/engine/code/game/g_items.c
+++ b/engine/code/game/g_items.c
@@ -33,7 +33,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Respawnable items don't actually go away when picked up, they are
just made invisible and untouchable. This allows them to ride
- movers and respawn apropriately.
+ movers and respawn appropriately.
*/
diff --git a/engine/code/game/g_missile.c b/engine/code/game/g_missile.c
index 97f03553..c2408176 100644
--- a/engine/code/game/g_missile.c
+++ b/engine/code/game/g_missile.c
@@ -371,7 +371,7 @@ void ProximityMine_Trigger( gentity_t *trigger, gentity_t *other, trace_t *trace
}
}
- // ok, now check for ability to damage so we don't get triggered thru walls, closed doors, etc...
+ // ok, now check for ability to damage so we don't get triggered through walls, closed doors, etc...
if( !CanDamage( other, trigger->s.pos.trBase ) ) {
return;
}
diff --git a/engine/code/game/g_mover.c b/engine/code/game/g_mover.c
index 42883a63..620d28be 100644
--- a/engine/code/game/g_mover.c
+++ b/engine/code/game/g_mover.c
@@ -210,7 +210,7 @@ qboolean G_TryPushingEntity( gentity_t *check, gentity_t *pusher, vec3_t move, v
}
// if it is ok to leave in the old position, do it
- // this is only relevent for riding entities, not pushed
+ // this is only relevant for riding entities, not pushed
// Sliding trapdoors can cause this.
VectorCopy( (pushed_p-1)->origin, check->s.pos.trBase);
if ( check->client ) {
@@ -454,7 +454,7 @@ void G_MoverTeam( gentity_t *ent ) {
obstacle = NULL;
- // make sure all team slaves can move before commiting
+ // make sure all team slaves can move before committing
// any moves or calling any think functions
// if the move is blocked, all moved objects will be backed out
pushed_p = pushed;
@@ -888,7 +888,7 @@ void InitMover( gentity_t *ent ) {
qboolean lightSet, colorSet;
char *sound;
- // if the "model2" key is set, use a seperate model
+ // if the "model2" key is set, use a separate model
// for drawing, but clip against the brushes
if ( ent->model2 ) {
ent->s.modelindex2 = G_ModelIndex( ent->model2 );
@@ -1645,7 +1645,7 @@ void Reached_Train( gentity_t *ent ) {
vec3_t move;
float length;
- // copy the apropriate values
+ // copy the appropriate values
next = ent->nextTrain;
if ( !next || !next->nextTrain ) {
return; // just stop
diff --git a/engine/code/game/g_spawn.c b/engine/code/game/g_spawn.c
index c5635814..838e62d7 100644
--- a/engine/code/game/g_spawn.c
+++ b/engine/code/game/g_spawn.c
@@ -454,7 +454,7 @@ void G_ParseField( const char *key, const char *value, gentity_t *ent ) {
G_SpawnGEntityFromSpawnVars
Spawn an entity and fill in all of the level fields from
-level.spawnVars[], then call the class specfic spawn function
+level.spawnVars[], then call the class specific spawn function
===================
*/
void G_SpawnGEntityFromSpawnVars( void ) {
diff --git a/engine/code/game/g_target.c b/engine/code/game/g_target.c
index 632130be..fed752b4 100644
--- a/engine/code/game/g_target.c
+++ b/engine/code/game/g_target.c
@@ -103,7 +103,7 @@ void Use_Target_Delay( gentity_t *ent, gentity_t *other, gentity_t *activator )
}
void SP_target_delay( gentity_t *ent ) {
- // check delay for backwards compatability
+ // check delay for backwards compatibility
if ( !G_SpawnFloat( "delay", "0", &ent->wait ) ) {
G_SpawnFloat( "wait", "1", &ent->wait );
}
diff --git a/engine/code/game/g_trigger.c b/engine/code/game/g_trigger.c
index 127057ad..a360d5d1 100644
--- a/engine/code/game/g_trigger.c
+++ b/engine/code/game/g_trigger.c
@@ -344,7 +344,7 @@ Any entity that touches this will be hurt.
It does dmg points of damage each server frame
Targeting the trigger will toggle its on / off state.
-SILENT supresses playing the sound
+SILENT suppresses playing the sound
SLOW changes the damage rate to once per second
NO_PROTECTION *nothing* stops the damage
diff --git a/engine/code/game/g_weapon.c b/engine/code/game/g_weapon.c
index 7366113f..3ddfd835 100644
--- a/engine/code/game/g_weapon.c
+++ b/engine/code/game/g_weapon.c
@@ -1412,7 +1412,7 @@ static void KamikazeRadiusDamage( vec3_t origin, gentity_t *attacker, float dama
continue;
}
- // dont hit things we have already hit
+ // don't hit things we have already hit
if( ent->kamikazeTime > level.time ) {
continue;
}
@@ -1472,7 +1472,7 @@ static void KamikazeShockWave( vec3_t origin, gentity_t *attacker, float damage,
for ( e = 0 ; e < numListedEntities ; e++ ) {
ent = &g_entities[entityList[ e ]];
- // dont hit things we have already hit
+ // don't hit things we have already hit
if( ent->kamikazeShockTime > level.time ) {
continue;
}
diff --git a/engine/code/q3_ui/ui_atoms.c b/engine/code/q3_ui/ui_atoms.c
index 5e7ef381..060719d8 100644
--- a/engine/code/q3_ui/ui_atoms.c
+++ b/engine/code/q3_ui/ui_atoms.c
@@ -992,7 +992,7 @@ static void NeedCDKeyAction( qboolean result ) {
void UI_SetActiveMenu( uiMenuCommand_t menu ) {
// this should be the ONLY way the menu system is brought up
- // enusure minumum menu data is cached
+ // ensure minimum menu data is cached
Menu_Cache();
switch ( menu ) {
diff --git a/engine/code/q3_ui/ui_local.h b/engine/code/q3_ui/ui_local.h
index bda37234..d69d9ecf 100644
--- a/engine/code/q3_ui/ui_local.h
+++ b/engine/code/q3_ui/ui_local.h
@@ -302,7 +302,7 @@ typedef struct
int width;
int height;
int columns;
- int seperation;
+ int separation;
// STONELANCE
int scrollbarAlignment;
int dragY;
diff --git a/engine/code/q3_ui/ui_playermodel.c b/engine/code/q3_ui/ui_playermodel.c
index e41d593f..d749f276 100644
--- a/engine/code/q3_ui/ui_playermodel.c
+++ b/engine/code/q3_ui/ui_playermodel.c
@@ -862,14 +862,14 @@ static void PlayerModel_PicEvent( void* ptr, int event )
Q_strncpyz(s_playermodel.modelskin,buffptr,pdest-buffptr+1);
strcat(s_playermodel.modelskin,pdest + 5);
- // seperate the model name
+ // separate the model name
maxlen = pdest-buffptr;
if (maxlen > 16)
maxlen = 16;
Q_strncpyz( s_playermodel.modelname.string, buffptr, maxlen );
Q_strupr( s_playermodel.modelname.string );
- // seperate the skin name
+ // separate the skin name
maxlen = strlen(pdest+5)+1;
if (maxlen > 16)
maxlen = 16;
@@ -1175,14 +1175,14 @@ static void PlayerModel_SetMenuItems( void )
s_playermodel.selectedmodel = i;
s_playermodel.modelpage = i/MAX_MODELSPERPAGE;
- // seperate the model name
+ // separate the model name
maxlen = pdest-buffptr;
if (maxlen > 16)
maxlen = 16;
Q_strncpyz( s_playermodel.modelname.string, buffptr, maxlen );
Q_strupr( s_playermodel.modelname.string );
- // seperate the skin name
+ // separate the skin name
maxlen = strlen(pdest+5)+1;
if (maxlen > 16)
maxlen = 16;
diff --git a/engine/code/q3_ui/ui_qmenu.c b/engine/code/q3_ui/ui_qmenu.c
index 4a80e647..5b979cb3 100644
--- a/engine/code/q3_ui/ui_qmenu.c
+++ b/engine/code/q3_ui/ui_qmenu.c
@@ -917,13 +917,13 @@ static void ListBox_Init( menulist_s *l )
if( !l->columns ) {
l->columns = 1;
- l->seperation = 0;
+ l->separation = 0;
}
- else if( !l->seperation ) {
- l->seperation = 3;
+ else if( !l->separation ) {
+ l->separation = 3;
}
- w = ( (l->width + l->seperation) * l->columns - l->seperation) * SMALLCHAR_WIDTH;
+ w = ( (l->width + l->separation) * l->columns - l->separation) * SMALLCHAR_WIDTH;
l->generic.left = l->generic.x;
l->generic.top = l->generic.y;
@@ -967,7 +967,7 @@ sfxHandle_t ListBox_Key( menulist_s *l, int key )
// check scroll region
x = l->generic.left;
y = l->generic.y;
- w = ( (l->width + l->seperation) * l->columns - l->seperation) * SMALLCHAR_WIDTH;
+ w = ( (l->width + l->separation) * l->columns - l->separation) * SMALLCHAR_WIDTH;
h = l->generic.bottom - l->generic.top;
if (l->scrollbarAlignment & SB_LEFT){
@@ -984,7 +984,7 @@ sfxHandle_t ListBox_Key( menulist_s *l, int key )
if (UI_CursorInRect( x, y, w, l->height*SMALLCHAR_HEIGHT ) &&
!(l->generic.flags & QMF_SCROLL_ONLY)) {
cursorx = (uis.cursorx - x)/SMALLCHAR_WIDTH;
- column = cursorx / (l->width + l->seperation);
+ column = cursorx / (l->width + l->separation);
cursory = (uis.cursory - y)/SMALLCHAR_HEIGHT;
index = column * l->height + cursory;
if (l->top + index < l->numitems)
@@ -1321,7 +1321,7 @@ static void ListBox_Draw( menulist_s *l )
y += SMALLCHAR_HEIGHT;
}
- x += (w + l->seperation) * SMALLCHAR_WIDTH;
+ x += (w + l->separation) * SMALLCHAR_WIDTH;
}
}
// END
@@ -1342,13 +1342,13 @@ static void ScrollList_Init( menulist_s *l )
if( !l->columns ) {
l->columns = 1;
- l->seperation = 0;
+ l->separation = 0;
}
- else if( !l->seperation ) {
- l->seperation = 3;
+ else if( !l->separation ) {
+ l->separation = 3;
}
- w = ( (l->width + l->seperation) * l->columns - l->seperation) * SMALLCHAR_WIDTH;
+ w = ( (l->width + l->separation) * l->columns - l->separation) * SMALLCHAR_WIDTH;
l->generic.left = l->generic.x;
l->generic.top = l->generic.y;
@@ -1387,14 +1387,14 @@ sfxHandle_t ScrollList_Key( menulist_s *l, int key )
// check scroll region
x = l->generic.x;
y = l->generic.y;
- w = ( (l->width + l->seperation) * l->columns - l->seperation) * SMALLCHAR_WIDTH;
+ w = ( (l->width + l->separation) * l->columns - l->separation) * SMALLCHAR_WIDTH;
if( l->generic.flags & QMF_CENTER_JUSTIFY ) {
x -= w / 2;
}
if (UI_CursorInRect( x, y, w, l->height*SMALLCHAR_HEIGHT ))
{
cursorx = (uis.cursorx - x)/SMALLCHAR_WIDTH;
- column = cursorx / (l->width + l->seperation);
+ column = cursorx / (l->width + l->separation);
cursory = (uis.cursory - y)/SMALLCHAR_HEIGHT;
index = column * l->height + cursory;
if (l->top + index < l->numitems)
@@ -1702,7 +1702,7 @@ void ScrollList_Draw( menulist_s *l )
y += SMALLCHAR_HEIGHT;
}
- x += (l->width + l->seperation) * SMALLCHAR_WIDTH;
+ x += (l->width + l->separation) * SMALLCHAR_WIDTH;
}
}
diff --git a/engine/code/qcommon/cm_patch.c b/engine/code/qcommon/cm_patch.c
index c284e4d5..002d9428 100644
--- a/engine/code/qcommon/cm_patch.c
+++ b/engine/code/qcommon/cm_patch.c
@@ -1105,7 +1105,7 @@ static void CM_PatchCollideFromGrid( cGrid_t *grid, patchCollide_t *pf ) {
numFacets++;
}
} else {
- // two seperate triangles
+ // two separate triangles
facet->surfacePlane = gridPlanes[i][j][0];
facet->numBorders = 3;
facet->borderPlanes[0] = borders[EN_TOP];
@@ -1214,7 +1214,7 @@ struct patchCollide_s *CM_GeneratePatchCollide( int width, int height, vec3_t *p
CM_RemoveDegenerateColumns( &grid );
// we now have a grid of points exactly on the curve
- // the aproximate surface defined by these points will be
+ // the approximate surface defined by these points will be
// collided against
pf = Hunk_Alloc( sizeof( *pf ), h_high );
ClearBounds( pf->bounds[0], pf->bounds[1] );
@@ -1369,7 +1369,7 @@ int CM_CheckFacetPlane(float *plane, vec3_t start, vec3_t end, float *enterFrac,
return qfalse;
}
- // if it doesn't cross the plane, the plane isn't relevent
+ // if it doesn't cross the plane, the plane isn't relevant
if (d1 <= 0 && d2 <= 0 ) {
return qtrue;
}
@@ -1433,7 +1433,7 @@ void CM_TraceThroughPatchCollide( traceWork_t *tw, const struct patchCollide_s *
VectorCopy(planes->plane, plane);
plane[3] = planes->plane[3];
if ( tw->sphere.use ) {
- // adjust the plane distance apropriately for radius
+ // adjust the plane distance appropriately for radius
plane[3] += tw->sphere.radius;
// find the closest point on the capsule to the plane
@@ -1472,7 +1472,7 @@ void CM_TraceThroughPatchCollide( traceWork_t *tw, const struct patchCollide_s *
plane[3] = planes->plane[3];
}
if ( tw->sphere.use ) {
- // adjust the plane distance apropriately for radius
+ // adjust the plane distance appropriately for radius
plane[3] += tw->sphere.radius;
// find the closest point on the capsule to the plane
@@ -1561,7 +1561,7 @@ qboolean CM_PositionTestInPatchCollide( traceWork_t *tw, const struct patchColli
VectorCopy(planes->plane, plane);
plane[3] = planes->plane[3];
if ( tw->sphere.use ) {
- // adjust the plane distance apropriately for radius
+ // adjust the plane distance appropriately for radius
plane[3] += tw->sphere.radius;
// find the closest point on the capsule to the plane
@@ -1594,7 +1594,7 @@ qboolean CM_PositionTestInPatchCollide( traceWork_t *tw, const struct patchColli
plane[3] = planes->plane[3];
}
if ( tw->sphere.use ) {
- // adjust the plane distance apropriately for radius
+ // adjust the plane distance appropriately for radius
plane[3] += tw->sphere.radius;
// find the closest point on the capsule to the plane
diff --git a/engine/code/qcommon/cm_polylib.c b/engine/code/qcommon/cm_polylib.c
index 4fa97865..28393bc6 100644
--- a/engine/code/qcommon/cm_polylib.c
+++ b/engine/code/qcommon/cm_polylib.c
@@ -353,7 +353,7 @@ void ClipWindingEpsilon (winding_t *in, vec3_t normal, vec_t dist,
return;
}
- maxpts = in->numpoints+4; // cant use counts[0]+2 because
+ maxpts = in->numpoints+4; // can't use counts[0]+2 because
// of fp grouping errors
*front = f = AllocWinding (maxpts);
@@ -462,7 +462,7 @@ void ChopWindingInPlace (winding_t **inout, vec3_t normal, vec_t dist, vec_t eps
if (!counts[1])
return; // inout stays the same
- maxpts = in->numpoints+4; // cant use counts[0]+2 because
+ maxpts = in->numpoints+4; // can't use counts[0]+2 because
// of fp grouping errors
f = AllocWinding (maxpts);
@@ -574,7 +574,7 @@ void CheckWinding (winding_t *w)
if (d < -ON_EPSILON || d > ON_EPSILON)
Com_Error (ERR_DROP, "CheckWinding: point off plane");
- // check the edge isnt degenerate
+ // check the edge isn't degenerate
p2 = w->p[j];
VectorSubtract (p2, p1, dir);
diff --git a/engine/code/qcommon/cm_trace.c b/engine/code/qcommon/cm_trace.c
index e6ca055f..ec9fd0a0 100644
--- a/engine/code/qcommon/cm_trace.c
+++ b/engine/code/qcommon/cm_trace.c
@@ -189,7 +189,7 @@ void CM_TestBoxInBrush( traceWork_t *tw, cbrush_t *brush ) {
side = brush->sides + i;
plane = side->plane;
- // adjust the plane distance apropriately for radius
+ // adjust the plane distance appropriately for radius
dist = plane->dist + tw->sphere.radius;
// find the closest point on the capsule to the plane
t = DotProduct( plane->normal, tw->sphere.offset );
@@ -214,7 +214,7 @@ void CM_TestBoxInBrush( traceWork_t *tw, cbrush_t *brush ) {
side = brush->sides + i;
plane = side->plane;
- // adjust the plane distance apropriately for mins/maxs
+ // adjust the plane distance appropriately for mins/maxs
dist = plane->dist - DotProduct( tw->offsets[ plane->signbits ], plane->normal );
d1 = DotProduct( tw->start, plane->normal ) - dist;
@@ -517,7 +517,7 @@ void CM_TraceThroughBrush( traceWork_t *tw, cbrush_t *brush ) {
side = brush->sides + i;
plane = side->plane;
- // adjust the plane distance apropriately for radius
+ // adjust the plane distance appropriately for radius
dist = plane->dist + tw->sphere.radius;
// find the closest point on the capsule to the plane
@@ -548,7 +548,7 @@ void CM_TraceThroughBrush( traceWork_t *tw, cbrush_t *brush ) {
return;
}
- // if it doesn't cross the plane, the plane isn't relevent
+ // if it doesn't cross the plane, the plane isn't relevant
if (d1 <= 0 && d2 <= 0 ) {
continue;
}
@@ -584,7 +584,7 @@ void CM_TraceThroughBrush( traceWork_t *tw, cbrush_t *brush ) {
side = brush->sides + i;
plane = side->plane;
- // adjust the plane distance apropriately for mins/maxs
+ // adjust the plane distance appropriately for mins/maxs
dist = plane->dist - DotProduct( tw->offsets[ plane->signbits ], plane->normal );
d1 = DotProduct( tw->start, plane->normal ) - dist;
@@ -602,7 +602,7 @@ void CM_TraceThroughBrush( traceWork_t *tw, cbrush_t *brush ) {
return;
}
- // if it doesn't cross the plane, the plane isn't relevent
+ // if it doesn't cross the plane, the plane isn't relevant
if (d1 <= 0 && d2 <= 0 ) {
continue;
}
@@ -1059,7 +1059,7 @@ void CM_TraceThroughTree( traceWork_t *tw, int num, float p1f, float p2f, vec3_t
node = cm.nodes + num;
plane = node->plane;
- // adjust the plane distance apropriately for mins/maxs
+ // adjust the plane distance appropriately for mins/maxs
if ( plane->type < 3 ) {
t1 = p1[plane->type] - plane->dist;
t2 = p2[plane->type] - plane->dist;
@@ -1204,7 +1204,7 @@ void CM_Trace( trace_t *results, const vec3_t start, const vec3_t end, vec3_t mi
tw.maxOffset = tw.size[1][0] + tw.size[1][1] + tw.size[1][2];
- // tw.offsets[signbits] = vector to apropriate corner from origin
+ // tw.offsets[signbits] = vector to appropriate corner from origin
tw.offsets[0][0] = tw.size[0][0];
tw.offsets[0][1] = tw.size[0][1];
tw.offsets[0][2] = tw.size[0][2];
diff --git a/engine/code/qcommon/cmd.c b/engine/code/qcommon/cmd.c
index 45122e07..ae605f7b 100644
--- a/engine/code/qcommon/cmd.c
+++ b/engine/code/qcommon/cmd.c
@@ -489,8 +489,8 @@ void Cmd_Args_Sanitize(void)
Cmd_TokenizeString
Parses the given string into command line tokens.
-The text is copied to a seperate buffer and 0 characters
-are inserted in the apropriate place, The argv array
+The text is copied to a separate buffer and 0 characters
+are inserted in the appropriate place, The argv array
will point into this temporary buffer.
============
*/
diff --git a/engine/code/qcommon/common.c b/engine/code/qcommon/common.c
index d7bb1f74..172797cb 100644
--- a/engine/code/qcommon/common.c
+++ b/engine/code/qcommon/common.c
@@ -46,7 +46,7 @@ int demo_protocols[] =
int com_argc;
char *com_argv[MAX_NUM_ARGVS+1];
-jmp_buf abortframe; // an ERR_DROP occured, exit the entire frame
+jmp_buf abortframe; // an ERR_DROP occurred, exit the entire frame
FILE *debuglogfile;
@@ -159,7 +159,7 @@ void Com_EndRedirect (void)
Com_Printf
Both client and server can use this, and it will output
-to the apropriate place.
+to the appropriate place.
A raw string should NEVER be passed as fmt, because of "%f" type crashers.
=============
@@ -371,7 +371,7 @@ void QDECL Com_Error( int code, const char *fmt, ... ) {
Com_Quit_f
Both client and server can use this, and it will
-do the apropriate things.
+do the appropriate things.
=============
*/
void Com_Quit_f( void ) {
@@ -399,7 +399,7 @@ void Com_Quit_f( void ) {
COMMAND LINE FUNCTIONS
-+ characters seperate the commandLine string into multiple console
++ characters separate the commandLine string into multiple console
command lines.
All of these are valid:
@@ -508,7 +508,7 @@ void Com_StartupVariable( const char *match ) {
Com_AddStartupCommands
Adds command line parameters as script statements
-Commands are seperated by + signs
+Commands are separated by + signs
Returns qtrue if any late commands were added, which
will keep the demoloop from immediately starting
@@ -1213,7 +1213,7 @@ char *CopyString( const char *in ) {
==============================================================================
Goals:
- reproducable without history effects -- no out of memory errors on weird map to map changes
+ reproducible without history effects -- no out of memory errors on weird map to map changes
allow restarting of the client without fragmentation
minimize total pages in use at run time
minimize total pages needed during load time
diff --git a/engine/code/qcommon/files.c b/engine/code/qcommon/files.c
index e8fc9031..c8a1732d 100644
--- a/engine/code/qcommon/files.c
+++ b/engine/code/qcommon/files.c
@@ -88,7 +88,7 @@ File search order: when FS_FOpenFileRead gets called it will go through the fs_s
structure and stop on the first successful hit. fs_searchpaths is built with successive
calls to FS_AddGameDirectory
-Additionaly, we search in several subdirectories:
+Additionally, we search in several subdirectories:
current game is the current mode
base game is a variable to allow mods based on other mods
(such as baseq3 + missionpack content combination in a mod for instance)
@@ -1457,7 +1457,7 @@ long FS_FOpenFileRead(const char *filename, fileHandle_t *file, qboolean uniqueF
}
else
{
- // When file is NULL, we're querying the existance of the file
+ // When file is NULL, we're querying the existence of the file
// If we've got here, it doesn't exist
return 0;
}
@@ -4101,7 +4101,7 @@ void FS_PureServerSetReferencedPaks( const char *pakSums, const char *pakNames )
================
FS_InitFilesystem
-Called only at inital startup, not when the filesystem
+Called only at initial startup, not when the filesystem
is resetting due to a game change
================
*/
diff --git a/engine/code/qcommon/q_shared.h b/engine/code/qcommon/q_shared.h
index 657204f1..fddf3140 100644
--- a/engine/code/qcommon/q_shared.h
+++ b/engine/code/qcommon/q_shared.h
@@ -273,7 +273,7 @@ typedef int clipHandle_t;
#define MAX_SAY_TEXT 150
-// paramters for command buffer stuffing
+// parameters for command buffer stuffing
typedef enum {
EXEC_NOW, // don't return until completed, a VM should NEVER use this,
// because some commands might cause the VM to be unloaded...
@@ -1361,7 +1361,7 @@ typedef struct playerState_s {
#define BUTTON_TURBO 16
/*
#define BUTTON_GESTURE 8
-#define BUTTON_WALKING 16 // walking can't just be infered from MOVE_RUN
+#define BUTTON_WALKING 16 // walking can't just be inferred from MOVE_RUN
// because a key pressed late in the frame will
// only generate a small move value for that frame
// walking will use different animations and
diff --git a/engine/code/qcommon/qcommon.h b/engine/code/qcommon/qcommon.h
index a8b3ec3d..dde07bfb 100644
--- a/engine/code/qcommon/qcommon.h
+++ b/engine/code/qcommon/qcommon.h
@@ -669,7 +669,7 @@ long FS_ReadFileDir(const char *qpath, void *searchPath, qboolean unpure, void *
long FS_ReadFile(const char *qpath, void **buffer);
// returns the length of the file
// a null buffer will just return the file length without loading
-// as a quick check for existance. -1 length == not present
+// as a quick check for existence. -1 length == not present
// A 0 byte will always be appended at the end, so string ops are safe.
// the buffer should be considered read-only, because it may be cached
// for other uses.
diff --git a/engine/code/qcommon/surfaceflags.h b/engine/code/qcommon/surfaceflags.h
index 808ca4b2..173c9ca4 100644
--- a/engine/code/qcommon/surfaceflags.h
+++ b/engine/code/qcommon/surfaceflags.h
@@ -23,7 +23,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
// This file must be identical in the quake and utils directories
-// contents flags are seperate bits
+// contents flags are separate bits
// a given brush can contribute multiple content bits
// these definitions also need to be in q_shared.h!
diff --git a/engine/code/qcommon/unzip.c b/engine/code/qcommon/unzip.c
index b5043c19..9a8ee451 100644
--- a/engine/code/qcommon/unzip.c
+++ b/engine/code/qcommon/unzip.c
@@ -151,7 +151,7 @@ typedef struct
/* ===========================================================================
Read a byte from a gz_stream; update next_in and avail_in. Return EOF
for end of file.
- IN assertion: the stream s has been sucessfully opened for reading.
+ IN assertion: the stream s has been successfully opened for reading.
*/
@@ -290,8 +290,8 @@ local int strcmpcasenosensitive_internal (fileName1,fileName2)
/*
Compare two filename (fileName1,fileName2).
- If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp)
- If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi
+ If iCaseSenisivity = 1, comparison is case sensitivity (like strcmp)
+ If iCaseSenisivity = 2, comparison is not case sensitivity (like strcmpi
or strcasecmp)
If iCaseSenisivity = 0, case sensitivity is defaut of your operating system
(like 1 on Unix, 2 on Windows)
diff --git a/engine/code/qcommon/unzip.h b/engine/code/qcommon/unzip.h
index b22b72ea..74dee975 100644
--- a/engine/code/qcommon/unzip.h
+++ b/engine/code/qcommon/unzip.h
@@ -125,8 +125,8 @@ extern int ZEXPORT unzStringFileNameCompare OF ((const char* fileName1,
int iCaseSensitivity));
/*
Compare two filename (fileName1,fileName2).
- If iCaseSenisivity = 1, comparision is case sensitivity (like strcmp)
- If iCaseSenisivity = 2, comparision is not case sensitivity (like strcmpi
+ If iCaseSenisivity = 1, comparison is case sensitivity (like strcmp)
+ If iCaseSenisivity = 2, comparison is not case sensitivity (like strcmpi
or strcasecmp)
If iCaseSenisivity = 0, case sensitivity is defaut of your operating system
(like 1 on Unix, 2 on Windows)
diff --git a/engine/code/qcommon/vm_powerpc.c b/engine/code/qcommon/vm_powerpc.c
index 3d9ede65..75e10aaa 100644
--- a/engine/code/qcommon/vm_powerpc.c
+++ b/engine/code/qcommon/vm_powerpc.c
@@ -401,7 +401,7 @@ struct symbolic_jump {
// extensions / modifiers (branch-link)
unsigned long ext;
- // dest_instruction refering to this jump
+ // dest_instruction referring to this jump
dest_instruction_t *parent;
// next jump
@@ -656,7 +656,7 @@ PPC_MakeFastMask( int mask )
* function local registers,
*
* normally only volatile registers are used, but if there aren't enough
- * or function has to preserve some value while calling annother one
+ * or function has to preserve some value while calling another one
* then caller safe registers are used as well
*/
static const long int gpr_list[] = {
diff --git a/engine/code/renderercommon/tr_image_png.c b/engine/code/renderercommon/tr_image_png.c
index 7b6fbada..3ec8fdec 100644
--- a/engine/code/renderercommon/tr_image_png.c
+++ b/engine/code/renderercommon/tr_image_png.c
@@ -571,7 +571,7 @@ static uint32_t DecompressIDATs(struct BufferedFile *BF, uint8_t **Buffer)
{
/*
* Rewind to the start of this adventure
- * and return unsuccessfull
+ * and return unsuccessful
*/
BufferedFileRewind(BF, BytesToRewind);
@@ -754,7 +754,7 @@ static uint32_t DecompressIDATs(struct BufferedFile *BF, uint8_t **Buffer)
ri.Free(CompressedData);
/*
- * Check if the last puff() was successfull.
+ * Check if the last puff() was successful.
*/
if(!((puffResult == 0) && (puffDestLen > 0)))
diff --git a/engine/code/renderercommon/tr_public.h b/engine/code/renderercommon/tr_public.h
index 38d647f6..8573860b 100644
--- a/engine/code/renderercommon/tr_public.h
+++ b/engine/code/renderercommon/tr_public.h
@@ -151,7 +151,7 @@ typedef struct {
void (*CM_DrawDebugSurface)( void (*drawPoly)(int color, int numPoints, float *points) );
// a -1 return means the file does not exist
- // NULL can be passed for buf to just determine existance
+ // NULL can be passed for buf to just determine existence
int (*FS_FileIsInPAK)( const char *name, int *pCheckSum );
long (*FS_ReadFile)( const char *name, void **buf );
void (*FS_FreeFile)( void *buf );
diff --git a/engine/code/renderercommon/tr_types.h b/engine/code/renderercommon/tr_types.h
index dd55e2e7..445a6da2 100644
--- a/engine/code/renderercommon/tr_types.h
+++ b/engine/code/renderercommon/tr_types.h
@@ -173,7 +173,7 @@ typedef enum {
} glDriverType_t;
typedef enum {
- GLHW_GENERIC, // where everthing works the way it should
+ GLHW_GENERIC, // where everything works the way it should
GLHW_3DFX_2D3D, // Voodoo Banshee or Voodoo3, relevant since if this is
// the hardware type then there can NOT exist a secondary
// display adapter
diff --git a/engine/code/renderergl1/tr_backend.c b/engine/code/renderergl1/tr_backend.c
index 869bfcd6..072f52c3 100644
--- a/engine/code/renderergl1/tr_backend.c
+++ b/engine/code/renderergl1/tr_backend.c
@@ -541,7 +541,7 @@ void RB_RenderDrawSurfList( drawSurf_t *drawSurfs, int numDrawSurfs ) {
//
// change the tess parameters if needed
- // a "entityMergable" shader is a shader that can have surfaces from seperate
+ // a "entityMergable" shader is a shader that can have surfaces from separate
// entities merged into a single batch, like smoke and blood puff sprites
if ( shader != NULL && ( shader != oldShader || fogNum != oldFogNum || dlighted != oldDlighted
|| ( entityNum != oldEntityNum && !shader->entityMergable ) ) ) {
@@ -742,7 +742,7 @@ void RE_StretchRaw (int x, int y, int w, int h, int cols, int rows, const byte *
RB_EndSurface();
}
- // we definately want to sync every frame for the cinematics
+ // we definitely want to sync every frame for the cinematics
qglFinish();
start = 0;
diff --git a/engine/code/renderergl1/tr_bsp.c b/engine/code/renderergl1/tr_bsp.c
index 1e660f28..83862c28 100644
--- a/engine/code/renderergl1/tr_bsp.c
+++ b/engine/code/renderergl1/tr_bsp.c
@@ -1428,7 +1428,7 @@ static void R_LoadNodesAndLeafs (lump_t *nodeLump, lump_t *leafLump) {
out->nummarksurfaces = LittleLong(inLeaf->numLeafSurfaces);
}
- // chain decendants
+ // chain descendants
R_SetParent (s_worldData.nodes, NULL);
}
diff --git a/engine/code/renderergl1/tr_image.c b/engine/code/renderergl1/tr_image.c
index 7a4b1bae..c8eb7c0f 100644
--- a/engine/code/renderergl1/tr_image.c
+++ b/engine/code/renderergl1/tr_image.c
@@ -941,7 +941,7 @@ static int numImageLoaders = ARRAY_LEN( imageLoaders );
=================
R_LoadImage
-Loads any of the supported image types into a cannonical
+Loads any of the supported image types into a canonical
32 bit format.
=================
*/
@@ -1400,7 +1400,7 @@ SKINS
CommaParse
This is unfortunate, but the skin files aren't
-compatable with our normal parsing rules.
+compatible with our normal parsing rules.
==================
*/
static char *CommaParse( char **data_p ) {
diff --git a/engine/code/renderergl1/tr_light.c b/engine/code/renderergl1/tr_light.c
index 80b55f5a..3eac0535 100644
--- a/engine/code/renderergl1/tr_light.c
+++ b/engine/code/renderergl1/tr_light.c
@@ -134,7 +134,7 @@ static void R_SetupEntityLightingGrid( trRefEntity_t *ent ) {
float totalFactor;
if ( ent->e.renderfx & RF_LIGHTING_ORIGIN ) {
- // seperate lightOrigins are needed so an object that is
+ // separate lightOrigins are needed so an object that is
// sinking into the ground can still be lit, and so
// multi-part models can be lit identically
VectorCopy( ent->e.lightingOrigin, lightOrigin );
@@ -304,7 +304,7 @@ void R_SetupEntityLighting( const trRefdef_t *refdef, trRefEntity_t *ent ) {
// trace a sample point down to find ambient light
//
if ( ent->e.renderfx & RF_LIGHTING_ORIGIN ) {
- // seperate lightOrigins are needed so an object that is
+ // separate lightOrigins are needed so an object that is
// sinking into the ground can still be lit, and so
// multi-part models can be lit identically
VectorCopy( ent->e.lightingOrigin, lightOrigin );
diff --git a/engine/code/renderergl1/tr_local.h b/engine/code/renderergl1/tr_local.h
index ffd824a5..b7789eae 100644
--- a/engine/code/renderergl1/tr_local.h
+++ b/engine/code/renderergl1/tr_local.h
@@ -840,7 +840,7 @@ typedef struct {
int msec; // total msec for backend run
} backEndCounters_t;
-// all state modified by the back end is seperated
+// all state modified by the back end is separated
// from the front end state
typedef struct {
trRefdef_t refdef;
@@ -981,7 +981,7 @@ extern cvar_t *r_measureOverdraw; // enables stencil buffer overdraw measuremen
extern cvar_t *r_lodbias; // push/pull LOD transitions
extern cvar_t *r_lodscale;
-extern cvar_t *r_primitives; // "0" = based on compiled vertex array existance
+extern cvar_t *r_primitives; // "0" = based on compiled vertex array existence
// "1" = glDrawElemet tristrips
// "2" = glDrawElements triangles
// "-1" = no drawing
diff --git a/engine/code/renderergl1/tr_shade.c b/engine/code/renderergl1/tr_shade.c
index 57a43c5a..19310006 100644
--- a/engine/code/renderergl1/tr_shade.c
+++ b/engine/code/renderergl1/tr_shade.c
@@ -448,7 +448,7 @@ static void ProjectDlightTexture_altivec( void ) {
dlight_t *dl;
if ( !( tess.dlightBits & ( 1 << l ) ) ) {
- continue; // this surface definately doesn't have any of this light
+ continue; // this surface definitely doesn't have any of this light
}
texCoords = texCoordsArray[0];
colors = colorArray[0];
@@ -613,7 +613,7 @@ static void ProjectDlightTexture_scalar( void ) {
dlight_t *dl;
if ( !( tess.dlightBits & ( 1 << l ) ) ) {
- continue; // this surface definately doesn't have any of this light
+ continue; // this surface definitely doesn't have any of this light
}
texCoords = texCoordsArray[0];
colors = colorArray[0];
@@ -745,7 +745,7 @@ static void ProjectDlightTexture_scalar( void ) {
static void ProjectDlightTexture( void ) {
#if idppc_altivec
if (com_altivec->integer) {
- // must be in a seperate function or G3 systems will crash.
+ // must be in a separate function or G3 systems will crash.
ProjectDlightTexture_altivec();
return;
}
diff --git a/engine/code/renderergl1/tr_shade_calc.c b/engine/code/renderergl1/tr_shade_calc.c
index 58b54270..511ebb4a 100644
--- a/engine/code/renderergl1/tr_shade_calc.c
+++ b/engine/code/renderergl1/tr_shade_calc.c
@@ -345,7 +345,7 @@ static void GlobalVectorToLocal( const vec3_t in, vec3_t out ) {
=====================
AutospriteDeform
-Assuming all the triangles for this shader are independant
+Assuming all the triangles for this shader are independent
quads, rebuild them as forward facing sprites
=====================
*/
@@ -1206,7 +1206,7 @@ void RB_CalcDiffuseColor( unsigned char *colors )
{
#if idppc_altivec
if (com_altivec->integer) {
- // must be in a seperate function or G3 systems will crash.
+ // must be in a separate function or G3 systems will crash.
RB_CalcDiffuseColor_altivec( colors );
return;
}
diff --git a/engine/code/renderergl1/tr_shader.c b/engine/code/renderergl1/tr_shader.c
index c1d9628b..2384a118 100644
--- a/engine/code/renderergl1/tr_shader.c
+++ b/engine/code/renderergl1/tr_shader.c
@@ -2088,7 +2088,7 @@ static shader_t *GeneratePermanentShader( void ) {
VertexLightingCollapse
If vertex lighting is enabled, only render a single
-pass, trying to guess which is the correct one to best aproximate
+pass, trying to guess which is the correct one to best approximate
what it is supposed to look like.
=================
*/
@@ -2493,18 +2493,18 @@ be defined for every single image used in the game, three default
shader behaviors can be auto-created for any image:
If lightmapIndex == LIGHTMAP_NONE, then the image will have
-dynamic diffuse lighting applied to it, as apropriate for most
+dynamic diffuse lighting applied to it, as appropriate for most
entity skin surfaces.
If lightmapIndex == LIGHTMAP_2D, then the image will be used
for 2D rendering unless an explicit shader is found
If lightmapIndex == LIGHTMAP_BY_VERTEX, then the image will use
-the vertex rgba modulate values, as apropriate for misc_model
+the vertex rgba modulate values, as appropriate for misc_model
pre-lit surfaces.
Other lightmapIndex values will have a lightmap stage created
-and src*dest blending applied with the texture, as apropriate for
+and src*dest blending applied with the texture, as appropriate for
most world construction surfaces.
===============
@@ -2551,7 +2551,7 @@ shader_t *R_FindShader( const char *name, int lightmapIndex, qboolean mipRawImag
InitShader( strippedName, lightmapIndex );
- // FIXME: set these "need" values apropriately
+ // FIXME: set these "need" values appropriately
shader.needsNormal = qtrue;
shader.needsST1 = qtrue;
shader.needsST2 = qtrue;
@@ -2689,7 +2689,7 @@ qhandle_t RE_RegisterShaderFromImage(const char *name, int lightmapIndex, image_
InitShader( name, lightmapIndex );
- // FIXME: set these "need" values apropriately
+ // FIXME: set these "need" values appropriately
shader.needsNormal = qtrue;
shader.needsST1 = qtrue;
shader.needsST2 = qtrue;
diff --git a/engine/code/renderergl1/tr_surface.c b/engine/code/renderergl1/tr_surface.c
index 9aadf95f..0eb1e5c8 100644
--- a/engine/code/renderergl1/tr_surface.c
+++ b/engine/code/renderergl1/tr_surface.c
@@ -569,7 +569,7 @@ static void VectorArrayNormalize(vec4_t *normals, unsigned int count)
// Vanilla PPC code, but since PPC has a reciprocal square root estimate instruction,
// runs *much* faster than calling sqrt(). We'll use a single Newton-Raphson
- // refinement step to get a little more precision. This seems to yeild results
+ // refinement step to get a little more precision. This seems to yield results
// that are correct to 3 decimal places and usually correct to at least 4 (sometimes 5).
// (That is, for the given input range of about 0.6 to 2.0).
do {
@@ -844,7 +844,7 @@ static void LerpMeshVertexes(md3Surface_t *surf, float backlerp)
{
#if idppc_altivec
if (com_altivec->integer) {
- // must be in a seperate function or G3 systems will crash.
+ // must be in a separate function or G3 systems will crash.
LerpMeshVertexes_altivec( surf, backlerp );
return;
}
diff --git a/engine/code/renderergl2/tr_backend.c b/engine/code/renderergl2/tr_backend.c
index decccbf9..955bb70e 100644
--- a/engine/code/renderergl2/tr_backend.c
+++ b/engine/code/renderergl2/tr_backend.c
@@ -471,7 +471,7 @@ void RB_RenderDrawSurfList( drawSurf_t *drawSurfs, int numDrawSurfs ) {
//
// change the tess parameters if needed
- // a "entityMergable" shader is a shader that can have surfaces from seperate
+ // a "entityMergable" shader is a shader that can have surfaces from separate
// entities merged into a single batch, like smoke and blood puff sprites
if ( shader != NULL && ( shader != oldShader || fogNum != oldFogNum || dlighted != oldDlighted || pshadowed != oldPshadowed || cubemapIndex != oldCubemapIndex
|| ( entityNum != oldEntityNum && !shader->entityMergable ) ) ) {
@@ -689,7 +689,7 @@ void RE_StretchRaw (int x, int y, int w, int h, int cols, int rows, const byte *
RB_EndSurface();
}
- // we definately want to sync every frame for the cinematics
+ // we definitely want to sync every frame for the cinematics
qglFinish();
start = 0;
diff --git a/engine/code/renderergl2/tr_bsp.c b/engine/code/renderergl2/tr_bsp.c
index 0480f91e..ad5fe3a3 100644
--- a/engine/code/renderergl2/tr_bsp.c
+++ b/engine/code/renderergl2/tr_bsp.c
@@ -1947,7 +1947,7 @@ static void R_LoadNodesAndLeafs (lump_t *nodeLump, lump_t *leafLump) {
out->nummarksurfaces = LittleLong(inLeaf->numLeafSurfaces);
}
- // chain decendants
+ // chain descendants
R_SetParent (s_worldData.nodes, NULL);
}
diff --git a/engine/code/renderergl2/tr_fbo.c b/engine/code/renderergl2/tr_fbo.c
index 98c5b503..26f50c3f 100644
--- a/engine/code/renderergl2/tr_fbo.c
+++ b/engine/code/renderergl2/tr_fbo.c
@@ -37,7 +37,7 @@ qboolean R_CheckFBO(const FBO_t * fbo)
if(code == GL_FRAMEBUFFER_COMPLETE)
return qtrue;
- // an error occured
+ // an error occurred
switch (code)
{
case GL_FRAMEBUFFER_UNSUPPORTED:
diff --git a/engine/code/renderergl2/tr_image.c b/engine/code/renderergl2/tr_image.c
index 169343dc..90931877 100644
--- a/engine/code/renderergl2/tr_image.c
+++ b/engine/code/renderergl2/tr_image.c
@@ -2286,7 +2286,7 @@ static int numImageLoaders = ARRAY_LEN( imageLoaders );
=================
R_LoadImage
-Loads any of the supported image types into a cannonical
+Loads any of the supported image types into a canonical
32 bit format.
=================
*/
@@ -2951,7 +2951,7 @@ SKINS
CommaParse
This is unfortunate, but the skin files aren't
-compatable with our normal parsing rules.
+compatible with our normal parsing rules.
==================
*/
static char *CommaParse( char **data_p ) {
diff --git a/engine/code/renderergl2/tr_light.c b/engine/code/renderergl2/tr_light.c
index f1886268..484159f3 100644
--- a/engine/code/renderergl2/tr_light.c
+++ b/engine/code/renderergl2/tr_light.c
@@ -138,7 +138,7 @@ static void R_SetupEntityLightingGrid( trRefEntity_t *ent, world_t *world ) {
float totalFactor;
if ( ent->e.renderfx & RF_LIGHTING_ORIGIN ) {
- // seperate lightOrigins are needed so an object that is
+ // separate lightOrigins are needed so an object that is
// sinking into the ground can still be lit, and so
// multi-part models can be lit identically
VectorCopy( ent->e.lightingOrigin, lightOrigin );
@@ -335,7 +335,7 @@ void R_SetupEntityLighting( const trRefdef_t *refdef, trRefEntity_t *ent ) {
// trace a sample point down to find ambient light
//
if ( ent->e.renderfx & RF_LIGHTING_ORIGIN ) {
- // seperate lightOrigins are needed so an object that is
+ // separate lightOrigins are needed so an object that is
// sinking into the ground can still be lit, and so
// multi-part models can be lit identically
VectorCopy( ent->e.lightingOrigin, lightOrigin );
diff --git a/engine/code/renderergl2/tr_local.h b/engine/code/renderergl2/tr_local.h
index f5f4b79e..238fb075 100644
--- a/engine/code/renderergl2/tr_local.h
+++ b/engine/code/renderergl2/tr_local.h
@@ -1392,7 +1392,7 @@ typedef struct {
int msec; // total msec for backend run
} backEndCounters_t;
-// all state modified by the back end is seperated
+// all state modified by the back end is separated
// from the front end state
typedef struct {
trRefdef_t refdef;
diff --git a/engine/code/renderergl2/tr_shade.c b/engine/code/renderergl2/tr_shade.c
index 03662472..778a74c4 100644
--- a/engine/code/renderergl2/tr_shade.c
+++ b/engine/code/renderergl2/tr_shade.c
@@ -341,7 +341,7 @@ static void ProjectDlightTexture( void ) {
vec4_t vector;
if ( !( tess.dlightBits & ( 1 << l ) ) ) {
- continue; // this surface definately doesn't have any of this light
+ continue; // this surface definitely doesn't have any of this light
}
dl = &backEnd.refdef.dlights[l];
@@ -672,7 +672,7 @@ static void ForwardDlight( void ) {
vec4_t texOffTurb;
if ( !( tess.dlightBits & ( 1 << l ) ) ) {
- continue; // this surface definately doesn't have any of this light
+ continue; // this surface definitely doesn't have any of this light
}
dl = &backEnd.refdef.dlights[l];
@@ -836,7 +836,7 @@ static void ProjectPshadowVBOGLSL( void ) {
vec4_t vector;
if ( !( tess.pshadowBits & ( 1 << l ) ) ) {
- continue; // this surface definately doesn't have any of this shadow
+ continue; // this surface definitely doesn't have any of this shadow
}
ps = &backEnd.refdef.pshadows[l];
diff --git a/engine/code/renderergl2/tr_shade_calc.c b/engine/code/renderergl2/tr_shade_calc.c
index 8369ad74..80e1a383 100644
--- a/engine/code/renderergl2/tr_shade_calc.c
+++ b/engine/code/renderergl2/tr_shade_calc.c
@@ -350,7 +350,7 @@ static void GlobalVectorToLocal( const vec3_t in, vec3_t out ) {
=====================
AutospriteDeform
-Assuming all the triangles for this shader are independant
+Assuming all the triangles for this shader are independent
quads, rebuild them as forward facing sprites
=====================
*/
diff --git a/engine/code/renderergl2/tr_shader.c b/engine/code/renderergl2/tr_shader.c
index d9c86279..b4f47004 100644
--- a/engine/code/renderergl2/tr_shader.c
+++ b/engine/code/renderergl2/tr_shader.c
@@ -2794,7 +2794,7 @@ static shader_t *GeneratePermanentShader( void ) {
VertexLightingCollapse
If vertex lighting is enabled, only render a single
-pass, trying to guess which is the correct one to best aproximate
+pass, trying to guess which is the correct one to best approximate
what it is supposed to look like.
=================
*/
@@ -3214,18 +3214,18 @@ be defined for every single image used in the game, three default
shader behaviors can be auto-created for any image:
If lightmapIndex == LIGHTMAP_NONE, then the image will have
-dynamic diffuse lighting applied to it, as apropriate for most
+dynamic diffuse lighting applied to it, as appropriate for most
entity skin surfaces.
If lightmapIndex == LIGHTMAP_2D, then the image will be used
for 2D rendering unless an explicit shader is found
If lightmapIndex == LIGHTMAP_BY_VERTEX, then the image will use
-the vertex rgba modulate values, as apropriate for misc_model
+the vertex rgba modulate values, as appropriate for misc_model
pre-lit surfaces.
Other lightmapIndex values will have a lightmap stage created
-and src*dest blending applied with the texture, as apropriate for
+and src*dest blending applied with the texture, as appropriate for
most world construction surfaces.
===============
diff --git a/engine/code/renderergl2/tr_vbo.c b/engine/code/renderergl2/tr_vbo.c
index e4d0ca37..89e99112 100644
--- a/engine/code/renderergl2/tr_vbo.c
+++ b/engine/code/renderergl2/tr_vbo.c
@@ -115,7 +115,7 @@ vao_t *R_CreateVao(const char *name, byte *vertexes, int vertexesSize, byte *ind
break;
default:
- Com_Error(ERR_FATAL, "bad vaoUsage_t given: %i", usage);
+ ri.Error(ERR_FATAL, "bad vaoUsage_t given: %i", usage);
return NULL;
}
diff --git a/engine/code/server/server.h b/engine/code/server/server.h
index 7ffe66ff..ec1620aa 100644
--- a/engine/code/server/server.h
+++ b/engine/code/server/server.h
@@ -135,9 +135,9 @@ typedef struct client_s {
char userinfo[MAX_INFO_STRING]; // name, etc
char reliableCommands[MAX_RELIABLE_COMMANDS][MAX_STRING_CHARS];
- int reliableSequence; // last added reliable message, not necesarily sent or acknowledged yet
+ int reliableSequence; // last added reliable message, not necessarily sent or acknowledged yet
int reliableAcknowledge; // last acknowledged reliable message
- int reliableSent; // last sent reliable message, not necesarily acknowledged yet
+ int reliableSent; // last sent reliable message, not necessarily acknowledged yet
int messageAcknowledge;
int gamestateMessageNum; // netchan->outgoingSequence of gamestate
diff --git a/engine/code/server/sv_init.c b/engine/code/server/sv_init.c
index 12134fbb..b6e6e089 100644
--- a/engine/code/server/sv_init.c
+++ b/engine/code/server/sv_init.c
@@ -128,7 +128,7 @@ void SV_SetConfigstring (int index, const char *val) {
// spawning a new server
if ( sv.state == SS_GAME || sv.restarting ) {
- // send the data to all relevent clients
+ // send the data to all relevant clients
for (i = 0, client = svs.clients; i < sv_maxclients->integer ; i++, client++) {
if ( client->state < CS_ACTIVE ) {
if ( client->state == CS_PRIMED )
@@ -376,7 +376,7 @@ static void SV_ClearServer(void) {
================
SV_TouchCGame
- touch the cgame.vm so that a pure client can load it if it's in a seperate pk3
+ touch the cgame.vm so that a pure client can load it if it's in a separate pk3
================
*/
static void SV_TouchCGame(void) {
@@ -580,7 +580,7 @@ void SV_SpawnServer( char *server, qboolean killBots ) {
Cvar_Set( "sv_pakNames", p );
// if a dedicated pure server we need to touch the cgame because it could be in a
- // seperate pk3 file and the client will need to load the latest cgame.qvm
+ // separate pk3 file and the client will need to load the latest cgame.qvm
if ( com_dedicated->integer ) {
SV_TouchCGame();
}
diff --git a/engine/code/server/sv_main.c b/engine/code/server/sv_main.c
index 0dd8ad47..4d94c1e3 100644
--- a/engine/code/server/sv_main.c
+++ b/engine/code/server/sv_main.c
@@ -209,7 +209,7 @@ void QDECL SV_SendServerCommand(client_t *cl, const char *fmt, ...) {
Com_Printf ("broadcast: %s\n", SV_ExpandNewlines((char *)message) );
}
- // send the data to all relevent clients
+ // send the data to all relevant clients
for (j = 0, client = svs.clients; j < sv_maxclients->integer ; j++, client++) {
SV_AddServerCommand( client, (char *)message );
}
diff --git a/engine/code/server/sv_snapshot.c b/engine/code/server/sv_snapshot.c
index 7c04afdf..ec760713 100644
--- a/engine/code/server/sv_snapshot.c
+++ b/engine/code/server/sv_snapshot.c
@@ -87,7 +87,7 @@ static void SV_EmitPacketEntities( clientSnapshot_t *from, clientSnapshot_t *to,
if ( newnum == oldnum ) {
// delta update from old position
// because the force parm is qfalse, this will not result
- // in any bytes being emited if the entity has not changed at all
+ // in any bytes being emitted if the entity has not changed at all
MSG_WriteDeltaEntity (msg, oldent, newent, qfalse );
oldindex++;
newindex++;
diff --git a/engine/code/sys/sys_unix.c b/engine/code/sys/sys_unix.c
index 44d7492f..ebba37e8 100644
--- a/engine/code/sys/sys_unix.c
+++ b/engine/code/sys/sys_unix.c
@@ -495,7 +495,7 @@ void Sys_FreeFileList( char **list )
==================
Sys_Sleep
-Block execution for msec or until input is recieved.
+Block execution for msec or until input is received.
==================
*/
void Sys_Sleep( int msec )
diff --git a/engine/code/tools/asm/cmdlib.c b/engine/code/tools/asm/cmdlib.c
index d130d8df..7d79e2c5 100644
--- a/engine/code/tools/asm/cmdlib.c
+++ b/engine/code/tools/asm/cmdlib.c
@@ -734,7 +734,7 @@ int LoadFile( const char *filename, void **bufferptr )
==============
LoadFileBlock
-
-rounds up memory allocation to 4K boundry
+rounds up memory allocation to 4K boundary
-
==============
*/
@@ -810,7 +810,7 @@ void DefaultExtension (char *path, const char *extension)
{
char *src;
//
-// if path doesnt have a .EXT, append extension
+// if path doesn't have a .EXT, append extension
// (extension should include the .)
//
src = path + strlen(path) - 1;
diff --git a/engine/code/tools/asm/cmdlib.h b/engine/code/tools/asm/cmdlib.h
index c2e6dd88..3233abd6 100644
--- a/engine/code/tools/asm/cmdlib.h
+++ b/engine/code/tools/asm/cmdlib.h
@@ -59,7 +59,7 @@ typedef unsigned char byte;
#define MAX_OS_PATH 1024
#define MEM_BLOCKSIZE 4096
-// the dec offsetof macro doesnt work very well...
+// the dec offsetof macro doesn't work very well...
#define myoffsetof(type,identifier) ((size_t)&((type *)0)->identifier)
diff --git a/engine/code/tools/asm/notes.txt b/engine/code/tools/asm/notes.txt
index 63297f30..571f8cac 100644
--- a/engine/code/tools/asm/notes.txt
+++ b/engine/code/tools/asm/notes.txt
@@ -1,5 +1,5 @@
-don't do any paramter conversion (double to float, etc)
+don't do any parameter conversion (double to float, etc)
diff --git a/engine/code/tools/asm/q3asm.c b/engine/code/tools/asm/q3asm.c
index 8be0124b..c4e1413d 100644
--- a/engine/code/tools/asm/q3asm.c
+++ b/engine/code/tools/asm/q3asm.c
@@ -788,7 +788,7 @@ HackToSegment
BIG HACK: I want to put all 32 bit values in the data
segment so they can be byte swapped, and all char data in the lit
-segment, but switch jump tables are emited in the lit segment and
+segment, but switch jump tables are emitted in the lit segment and
initialized strng variables are put in the data segment.
I can change segments here, but I also need to fixup the
@@ -1129,7 +1129,7 @@ STAT("BYTE");
return 0;
}
- // code labels are emited as instruction counts, not byte offsets,
+ // code labels are emitted as instruction counts, not byte offsets,
// because the physical size of the code will change with
// different run time compilers and we want to minimize the
// size of the required translation table
@@ -1564,7 +1564,7 @@ int main( int argc, char **argv ) {
if ( !strcmp( argv[i], "-o" ) ) {
if ( i == argc - 1 ) {
- Error( "-o must preceed a filename" );
+ Error( "-o must precede a filename" );
}
/* Timbo of Tremulous pointed out -o not working; stock ID q3asm folded in the change. Yay. */
strcpy( outputFilename, argv[ i+1 ] );
@@ -1574,7 +1574,7 @@ int main( int argc, char **argv ) {
if ( !strcmp( argv[i], "-f" ) ) {
if ( i == argc - 1 ) {
- Error( "-f must preceed a filename" );
+ Error( "-f must precede a filename" );
}
ParseOptionFile( argv[ i+1 ] );
i++;
diff --git a/engine/code/tools/lcc/doc/4.html b/engine/code/tools/lcc/doc/4.html
index 0b4b36d2..c1cd8daa 100644
--- a/engine/code/tools/lcc/doc/4.html
+++ b/engine/code/tools/lcc/doc/4.html
@@ -41,7 +41,7 @@ and insisted that pointers fit in unsigned integers (see Sec. 5.1 of A Ret
C Compiler). These assumptions simplified the compiler, and were suitable for
32-bit architectures. But on 64-bit architectures, such as the DEC ALPHA, it's natural to
have four sizes of integers and perhaps three sizes of floats, and on 16-bit
-architectures, 32-bit pointers don't fit in unsigned integers. Also, the 3.x constaints
+architectures, 32-bit pointers don't fit in unsigned integers. Also, the 3.x constraints
limited the use of lcc's back ends for other languages, such as Java.
Version 4.x removes all of these restrictions: It supports any number of sizes for
diff --git a/engine/code/tools/lcc/etc/lcc.c b/engine/code/tools/lcc/etc/lcc.c
index aa3e7894..a12799b6 100644
--- a/engine/code/tools/lcc/etc/lcc.c
+++ b/engine/code/tools/lcc/etc/lcc.c
@@ -636,7 +636,7 @@ static void opt(char *arg) {
clist = append(&arg[3], clist);
return;
}
- break; /* and fall thru */
+ break; /* and fall through */
case 'a':
alist = append(&arg[3], alist);
return;
diff --git a/engine/code/tools/lcc/src/enode.c b/engine/code/tools/lcc/src/enode.c
index 4a37618c..d59c31bf 100644
--- a/engine/code/tools/lcc/src/enode.c
+++ b/engine/code/tools/lcc/src/enode.c
@@ -401,7 +401,7 @@ Tree addrof(Tree p) {
Symbol t1 = q->u.sym;
q->u.sym = 0;
q = idtree(t1);
- /* fall thru */
+ /* fall through */
}
case INDIR:
if (p == q)
diff --git a/engine/code/tools/lcc/src/error.c b/engine/code/tools/lcc/src/error.c
index 2187c101..52ca11f5 100644
--- a/engine/code/tools/lcc/src/error.c
+++ b/engine/code/tools/lcc/src/error.c
@@ -80,7 +80,7 @@ int fatal(const char *name, const char *fmt, int n) {
return 0;
}
-/* printtoken - print current token preceeded by a space */
+/* printtoken - print current token preceded by a space */
static void printtoken(void) {
switch (t) {
case ID: fprint(stderr, " `%s'", token); break;
diff --git a/engine/code/tools/lcc/src/gen.c b/engine/code/tools/lcc/src/gen.c
index 4ee170d9..1413a787 100644
--- a/engine/code/tools/lcc/src/gen.c
+++ b/engine/code/tools/lcc/src/gen.c
@@ -292,7 +292,7 @@ static void dumptree(Node p) {
dumptree(p->kids[0]);
break;
}
- /* else fall thru */
+ /* else fall through */
case EQ: case NE: case GT: case GE: case LE: case LT:
case ASGN: case BOR: case BAND: case BXOR: case RSH: case LSH:
case ADD: case SUB: case DIV: case MUL: case MOD:
diff --git a/engine/code/tools/lcc/src/init.c b/engine/code/tools/lcc/src/init.c
index 172d7c04..2f015b40 100644
--- a/engine/code/tools/lcc/src/init.c
+++ b/engine/code/tools/lcc/src/init.c
@@ -40,7 +40,7 @@ static int genconst(Tree e, int def) {
if (isarith(e->type))
error("cast from `%t' to `%t' is illegal in constant expressions\n",
e->kids[0]->type, e->type);
- /* fall thru */
+ /* fall through */
case CVI: case CVU: case CVF:
e = e->kids[0];
continue;
diff --git a/engine/code/tools/lcc/src/tree.c b/engine/code/tools/lcc/src/tree.c
index d2b6a917..e8e9e1f4 100644
--- a/engine/code/tools/lcc/src/tree.c
+++ b/engine/code/tools/lcc/src/tree.c
@@ -86,7 +86,7 @@ static Tree root1(Tree p) {
warning("reference to `%t' elided\n", p->type);
if (isptr(p->kids[0]->type) && isvolatile(p->kids[0]->type->type))
warning("reference to `volatile %t' elided\n", p->type);
- /* fall thru */
+ /* fall through */
case CVI: case CVF: case CVU: case CVP:
case NEG: case BCOM: case FIELD:
if (warn++ == 0)
diff --git a/engine/code/ui/ui_local.h b/engine/code/ui/ui_local.h
index f6354821..9129aee9 100644
--- a/engine/code/ui/ui_local.h
+++ b/engine/code/ui/ui_local.h
@@ -258,7 +258,7 @@ typedef struct
int width;
int height;
int columns;
- int seperation;
+ int separation;
} menulist_s;
typedef struct
diff --git a/engine/code/ui/ui_main.c b/engine/code/ui/ui_main.c
index bd8c515d..c1f91364 100644
--- a/engine/code/ui/ui_main.c
+++ b/engine/code/ui/ui_main.c
@@ -5286,7 +5286,7 @@ void _UI_SetActiveMenu( uiMenuCommand_t menu ) {
char buf[256];
// this should be the ONLY way the menu system is brought up
- // enusure minumum menu data is cached
+ // ensure minimum menu data is cached
if (Menu_Count() > 0) {
vec3_t v;
v[0] = v[1] = v[2] = 0;
@@ -6021,7 +6021,7 @@ static void UI_StartServerRefresh(qboolean full, qboolean force)
}
trap_RealTime(&q);
- trap_Cvar_Set( va("ui_lastServerRefresh_%i", ui_netSource.integer), va("%s-%i, %i at %i:%i", MonthAbbrev[q.tm_mon],q.tm_mday, 1900+q.tm_year,q.tm_hour,q.tm_min));
+ trap_Cvar_Set( va("ui_lastServerRefresh_%i", ui_netSource.integer), va("%s-%i, %i at %i:%02i", MonthAbbrev[q.tm_mon],q.tm_mday, 1900+q.tm_year,q.tm_hour,q.tm_min));
if (!full) {
UI_UpdatePendingPings();
diff --git a/engine/code/ui/ui_shared.c b/engine/code/ui/ui_shared.c
index e574f78d..aa8489d3 100644
--- a/engine/code/ui/ui_shared.c
+++ b/engine/code/ui/ui_shared.c
@@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
//
-// string allocation/managment
+// string allocation/management
#include "ui_shared.h"
diff --git a/engine/docs/ChangeLog b/engine/docs/ChangeLog
index ab963fe3..e26df8c6 100644
--- a/engine/docs/ChangeLog
+++ b/engine/docs/ChangeLog
@@ -634,7 +634,7 @@
#1 current directory
#2 fs_homepath
#3 fs_basepath
- this was needed to make mod developement easier
+ this was needed to make mod development easier
2001-10-09 Timothee Besset
+ https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=51
@@ -814,7 +814,7 @@
* rebuilding 1.28b, various fixes on linux build:
- SetProgramPath was renamed to Sys_SetDefaultCDPath in unix_shared.c
updated unix_main.c accordingly
- - some prototypes in qgl.h are guarded by #ifndef GL_VERSION_1_2 (ARB extentions)
+ - some prototypes in qgl.h are guarded by #ifndef GL_VERSION_1_2 (ARB extensions)
those prototypes are needed by linux_glimp for importing functions and casting, added a #ifdef __linux__
(not a clean solution)
- game/q_shared.h
@@ -861,7 +861,7 @@
2001-04-23 Timothee Besset
* cleanup the mod selection code, remove duplicates
- * some issues with release builds, my main developement box doesn't build stable binaries with release settings
+ * some issues with release builds, my main development box doesn't build stable binaries with release settings
removing -fomit-frame-pointer seems to fix (there's probably a performance hit)
see OMIT-FRAME-POINTER.txt
@@ -984,7 +984,7 @@
//* or // /* or variations of this. I reverted to exact mirror
image of SOS to be sure - short of removing it's too easy to mistake
live code for dead one.
- Later: have to change 5 occurences to avoid gcc complaints about
+ Later: have to change 5 occurrences to avoid gcc complaints about
nested comment tokens.
TODO: somebody please get rid of the cruft in here.
@@ -1235,7 +1235,7 @@
* code/game/g_cmds.c (G_SayTo): CON_CONNECTED.
* code/game/ai_main.c: HOOK added (SOS).
* code/botlib/be_aas_move.c (AAS_HorizontalVelocityForJump):
- correct fix for FPE occuring (SOS).
+ correct fix for FPE occurring (SOS).
* code/game/ai_dmq3.c: initmove.viewoffset (SOS).
* code/game/q_math.c: guard asser/isnan with Q3_VM (q3asm).
@@ -1679,7 +1679,7 @@
* code/game/q_shared.c: Q_strncpyz does zero padding (duh).
Note: calls strncpy, which does a zero fill up to destsize.
If destsize exceeds memory size, zero padding will overwrite
- adjacent memory. Suspicion was this happend to botimport.
+ adjacent memory. Suspicion was this happened to botimport.
* code/qcommon/cvar.c: possible problem in Q_strncpyz call.
@@ -1783,7 +1783,7 @@
* TEST: running with RC4 data files.
TODO: "bot library used before setup" (Q3+TA)
TODO: Q3 old mods wreak havoc (graceful bounce)
- TODO: supress "FreeType code not available" in renderer
+ TODO: suppress "FreeType code not available" in renderer
TODO: can't move in Q3
TODO: items flicker in Q3
TODO: no decals in Q3
@@ -2015,7 +2015,7 @@
* TEST: tried executing a script - get bounced.
TODO: is there any way to jump into a map?
- TODO: cl_cinematics 0 (supress all fullscreen RoQ)
+ TODO: cl_cinematics 0 (suppress all fullscreen RoQ)
Next: used r_logfile 200 in Win32 (RC4) and Linux.
There is a buckload of setup code seemingly not done
at all in Linux? Either that, or logging is enabled
@@ -2983,7 +2983,7 @@
Modules:
code: the Q3 engine code, including a jpeg-6/ copy
common: code shared by tools
- libs: code shared by tools, inlcuding a jpeg6/ copy
+ libs: code shared by tools, including a jpeg6/ copy
q3asm: VM bytecode assembly
q3data: misc. Q3 data conversions
q3map: BSP builder
diff --git a/engine/docs/opengl2-readme.md b/engine/docs/opengl2-readme.md
index 1b1db203..7e572611 100644
--- a/engine/docs/opengl2-readme.md
+++ b/engine/docs/opengl2-readme.md
@@ -230,7 +230,7 @@ Cvars for advanced material usage:
Cvars for image interpolation and generation:
-* `r_imageUpsample` - Use interpolation to artifically increase
+* `r_imageUpsample` - Use interpolation to artificially increase
the resolution of all textures. Looks good
in certain circumstances.
0 - No. (default)
diff --git a/engine/make-macosx-ub.sh b/engine/make-macosx-ub.sh
index f359824a..c7419ecb 100755
--- a/engine/make-macosx-ub.sh
+++ b/engine/make-macosx-ub.sh
@@ -7,7 +7,7 @@ if [ ! -f Makefile ]; then
exit 1
fi
-# we want to use the oldest available SDK for max compatiblity. However 10.4 and older
+# we want to use the oldest available SDK for max compatibility. However 10.4 and older
# can not build 64bit binaries, making 10.5 the minimum version. This has been tested
# with xcode 3.1 (xcode31_2199_developerdvd.dmg). It contains the 10.5 SDK and a decent
# enough gcc to actually compile ioquake3
diff --git a/engine/make-macosx.sh b/engine/make-macosx.sh
index 387fe640..6090bed0 100755
--- a/engine/make-macosx.sh
+++ b/engine/make-macosx.sh
@@ -33,7 +33,7 @@ if [ ! -f Makefile ]; then
exit 1
fi
-# we want to use the oldest available SDK for max compatiblity. However 10.4 and older
+# we want to use the oldest available SDK for max compatibility. However 10.4 and older
# can not build 64bit binaries, making 10.5 the minimum version. This has been tested
# with xcode 3.1 (xcode31_2199_developerdvd.dmg). It contains the 10.5 SDK and a decent
# enough gcc to actually compile ioquake3