mirror of
https://github.com/Q3Rally-Team/q3rally.git
synced 2024-11-24 21:01:34 +00:00
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
This commit is contained in:
parent
f746431813
commit
c55f11d8b9
108 changed files with 231 additions and 224 deletions
|
@ -44,7 +44,7 @@ ifndef BUILD_DEFINES
|
|||
endif
|
||||
|
||||
# ioquake3 svn version that this is based on
|
||||
IOQ3_REVISION = 3385
|
||||
IOQ3_REVISION = 3393
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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++)
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
//============================================================================
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 ) {
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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" );
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
==================
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 ) ) {
|
||||
|
|
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
|
@ -302,7 +302,7 @@ typedef struct
|
|||
int width;
|
||||
int height;
|
||||
int columns;
|
||||
int seperation;
|
||||
int separation;
|
||||
// STONELANCE
|
||||
int scrollbarAlignment;
|
||||
int dragY;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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.
|
||||
============
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
================
|
||||
*/
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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!
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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[] = {
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 ) {
|
||||
|
|
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
=====================
|
||||
*/
|
||||
|
|
|
@ -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.
|
||||
|
||||
===============
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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++;
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
don't do any paramter conversion (double to float, etc)
|
||||
don't do any parameter conversion (double to float, etc)
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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++;
|
||||
|
|
|
@ -41,7 +41,7 @@ and insisted that pointers fit in unsigned integers (see Sec. 5.1 of <cite>A Ret
|
|||
C Compiler</cite>). 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.</p>
|
||||
|
||||
<p>Version 4.x removes all of these restrictions: It supports any number of sizes for
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue