Fix a few typos

This commit is contained in:
Sébastien Noel 2024-09-19 10:52:47 +02:00
parent 1c7b561aa9
commit a010e648ee
19 changed files with 40 additions and 40 deletions

View file

@ -564,7 +564,7 @@ Event EV_Client_LoopSound
EV_DEFAULT, EV_DEFAULT,
"sFFf", "sFFf",
"soundName volume min_distance pitch", "soundName volume min_distance pitch",
"Play the specifed sound as a looping sound" "Play the specified sound as a looping sound"
); );
Event EV_Client_Cache Event EV_Client_Cache
( (
@ -985,7 +985,7 @@ Event EV_Client_BounceDecal(
"maxamount temporary", "maxamount temporary",
"Put a mark when the tempmodel bounces and hits a surface\n" "Put a mark when the tempmodel bounces and hits a surface\n"
"maxamount = Max amount of decals to make when bouncing\n" "maxamount = Max amount of decals to make when bouncing\n"
"temporary = specify 1 for a temporary mark that only appears for a short time, 0 for a decal that stays aroung " "temporary = specify 1 for a temporary mark that only appears for a short time, 0 for a decal that stays around "
"longer (default is 0)\n" "longer (default is 0)\n"
); );
Event EV_Client_SetDecalRadius Event EV_Client_SetDecalRadius
@ -1122,7 +1122,7 @@ Event EV_Client_SetAlignStretch(
EV_DEFAULT, EV_DEFAULT,
"F", "F",
"scaleMultiplier", "scaleMultiplier",
"Aligns the temp model to the direction of travel, and stretches it betwen the last and current positions.\n" "Aligns the temp model to the direction of travel, and stretches it between the last and current positions.\n"
); );
Event EV_Client_SetClampVelocity Event EV_Client_SetClampVelocity
( (
@ -3883,7 +3883,7 @@ void ClientGameCommandManager::PlaySound(
} else { } else {
if (debugSound->integer) { if (debugSound->integer) {
Com_Printf( Com_Printf(
"\nWARNING: OVERRIDE OVERRIDE OVERRIDESound %s had all its parm overriden by code.\n\n", "\nWARNING: OVERRIDE OVERRIDE OVERRIDESound %s had all its parm overridden by code.\n\n",
sound_name.c_str() sound_name.c_str()
); );
} }

View file

@ -1906,7 +1906,7 @@ void CL_InitDownloads(void) {
if (FS_ComparePaks( missingfiles, sizeof( missingfiles ), qfalse ) ) if (FS_ComparePaks( missingfiles, sizeof( missingfiles ), qfalse ) )
{ {
// NOTE TTimo I would rather have that printed as a modal message box // NOTE TTimo I would rather have that printed as a modal message box
// but at this point while joining the game we don't know wether we will successfully join or not // but at this point while joining the game we don't know whether we will successfully join or not
Com_Printf( "\nWARNING: You are missing some files referenced by the server:\n%s" Com_Printf( "\nWARNING: You are missing some files referenced by the server:\n%s"
"You might not be able to join the game\n" "You might not be able to join the game\n"
"Go to the setting menu to turn on autodownload, or get the file elsewhere\n\n", missingfiles ); "Go to the setting menu to turn on autodownload, or get the file elsewhere\n\n", missingfiles );

View file

@ -503,7 +503,7 @@ void VehicleTank::UpdateSound()
// This method only work when called from script. // This method only work when called from script.
// But it is not called automatically when the player actually uses the vehicle // But it is not called automatically when the player actually uses the vehicle
// when that vehicle is unlocked. // when that vehicle is unlocked.
// So the other native method is overriden instead // So the other native method is overridden instead
/* /*
void VehicleTank::AttachDriverSlot(Event *ev) void VehicleTank::AttachDriverSlot(Event *ev)
{ {

View file

@ -558,7 +558,7 @@ Event EV_Actor_DamagePuff
EV_DEFAULT, EV_DEFAULT,
"vv", "vv",
"position direction", "position direction",
"Spawns a puff of 'blood' smoke at the speficied location in the specified direction.", "Spawns a puff of 'blood' smoke at the specified location in the specified direction.",
EV_NORMAL EV_NORMAL
); );
Event EV_Actor_SetAngleYawSpeed Event EV_Actor_SetAngleYawSpeed
@ -5646,7 +5646,7 @@ void Actor::EventSetMood(Event *ev)
=============== ===============
Actor::EventDamagePuff Actor::EventDamagePuff
Spawns a puff of 'blood' smoke at the speficied location in the specified direction. Spawns a puff of 'blood' smoke at the specified location in the specified direction.
=============== ===============
*/ */
void Actor::EventDamagePuff(Event *ev) void Actor::EventDamagePuff(Event *ev)

View file

@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
/***************************************************************************** /*****************************************************************************
/*QUAKED func_barrel (0 0.25 0.5) ? INDESTRUCTABLE /*QUAKED func_barrel (0 0.25 0.5) ? INDESTRUCTABLE
Brush model barrel object Brush model barrel object
Bashing only makes thunk or gong sounds (depending on wether it's full or not) Bashing only makes thunk or gong sounds (depending on whether it's full or not)
Bullets and explosions effects are dependant apon the type of barrel. Bullets and explosions effects are dependant apon the type of barrel.
"barreltype" sets the type of barrel that it is. Valid settings are: "barreltype" sets the type of barrel that it is. Valid settings are:
- "water" makes the barrel be filled with water. - "water" makes the barrel be filled with water.

View file

@ -104,7 +104,7 @@ Event EV_FuncBeam_Minoffset
EV_DEFAULT, EV_DEFAULT,
"f", "f",
"min_offset", "min_offset",
"Set the minimun offset the beam can travel above, below, forward or back of it's endpoints", "Set the minimum offset the beam can travel above, below, forward or back of it's endpoints",
EV_NORMAL EV_NORMAL
); );
Event EV_FuncBeam_Overlap Event EV_FuncBeam_Overlap

View file

@ -768,7 +768,7 @@ Event EV_SetLight
EV_DEFAULT, EV_DEFAULT,
"ffff", "ffff",
"red green blue radius", "red green blue radius",
"Create a dynmaic light on this entity.", "Create a dynamic light on this entity.",
EV_NORMAL EV_NORMAL
); );
@ -778,7 +778,7 @@ Event EV_LightOn
EV_DEFAULT, EV_DEFAULT,
NULL, NULL,
NULL, NULL,
"Turn the configured dynmaic light on this entity on.", "Turn the configured dynamic light on this entity on.",
EV_NORMAL EV_NORMAL
); );
Event EV_LightOff Event EV_LightOff
@ -805,7 +805,7 @@ Event EV_LightRed
EV_DEFAULT, EV_DEFAULT,
"f", "f",
"red", "red",
"Set the red component of the dynmaic light on this entity.", "Set the red component of the dynamic light on this entity.",
EV_NORMAL EV_NORMAL
); );
Event EV_LightGreen Event EV_LightGreen
@ -814,7 +814,7 @@ Event EV_LightGreen
EV_DEFAULT, EV_DEFAULT,
"f", "f",
"red", "red",
"Set the red component of the dynmaic light on this entity.", "Set the red component of the dynamic light on this entity.",
EV_NORMAL EV_NORMAL
); );
Event EV_LightBlue Event EV_LightBlue
@ -823,7 +823,7 @@ Event EV_LightBlue
EV_DEFAULT, EV_DEFAULT,
"f", "f",
"red", "red",
"Set the red component of the dynmaic light on this entity.", "Set the red component of the dynamic light on this entity.",
EV_NORMAL EV_NORMAL
); );
Event EV_LightRadius Event EV_LightRadius
@ -832,7 +832,7 @@ Event EV_LightRadius
EV_DEFAULT, EV_DEFAULT,
"f", "f",
"red", "red",
"Set the red component of the dynmaic light on this entity.", "Set the red component of the dynamic light on this entity.",
EV_NORMAL EV_NORMAL
); );

View file

@ -1095,11 +1095,11 @@ void G_ArchivePersistant(const char *name, qboolean loading)
arc.ArchiveInteger(&version); arc.ArchiveInteger(&version);
if (version < PERSISTANT_VERSION) { if (version < PERSISTANT_VERSION) {
gi.Printf("Persistant data from an older version (%d) of MOHAA.\n", version); gi.Printf("Persistent data from an older version (%d) of MOHAA.\n", version);
arc.Close(); arc.Close();
return; return;
} else if (version > PERSISTANT_VERSION) { } else if (version > PERSISTANT_VERSION) {
gi.DPrintf("Persistant data from newer version %d of MOHAA.\n", version); gi.DPrintf("Persistent data from newer version %d of MOHAA.\n", version);
arc.Close(); arc.Close();
return; return;
} }

View file

@ -391,7 +391,7 @@ Event EV_Level_GetRoundBased
EV_DEFAULT, EV_DEFAULT,
NULL, NULL,
NULL, NULL,
"Gets wether or not the game is currently round based or not", "Gets whether or not the game is currently round based or not",
EV_GETTER EV_GETTER
); );
@ -401,7 +401,7 @@ Event EV_Level_GetObjectiveBased
EV_DEFAULT, EV_DEFAULT,
NULL, NULL,
NULL, NULL,
"Gets wether or not the game is currently objective based or not", "Gets whether or not the game is currently objective based or not",
EV_GETTER EV_GETTER
); );

View file

@ -278,7 +278,7 @@ Event EV_Player_CorrectWeaponAttachments
EV_CONSOLE, EV_CONSOLE,
NULL, NULL,
NULL, NULL,
"makes sure the weapons is properly attached when interupting a reload", "makes sure the weapons is properly attached when interrupting a reload",
EV_NORMAL EV_NORMAL
); );
Event EV_Player_GiveCheat Event EV_Player_GiveCheat
@ -1278,7 +1278,7 @@ Event EV_Player_SetPerferredWeapon
EV_DEFAULT, EV_DEFAULT,
"s", "s",
"weapon_name", "weapon_name",
"Overrides your perferred weapon that is displayed in the stats screen.", "Overrides your preferred weapon that is displayed in the stats screen.",
EV_NORMAL EV_NORMAL
); );
Event EV_Player_SetVoiceType Event EV_Player_SetVoiceType
@ -10728,7 +10728,7 @@ str Player::GetBattleLanguageCondition() const
case 0: case 0:
return "almost dead"; return "almost dead";
case 1: case 1:
return "severly wounded"; return "severely wounded";
case 2: case 2:
return "wounded"; return "wounded";
case 3: case 3:

View file

@ -215,7 +215,7 @@ void CarryableTurret::EventPlaceTurret(Event *ev)
if (trace.startsolid || trace.fraction < 1 || trace.ent) { if (trace.startsolid || trace.fraction < 1 || trace.ent) {
gi.DPrintf( gi.DPrintf(
"~*~*~ Not enough room to auto place protable turret at (%i %i %i)\n", "~*~*~ Not enough room to auto place portable turret at (%i %i %i)\n",
(int)origin[0], (int)origin[0],
(int)origin[1], (int)origin[1],
(int)origin[2] (int)origin[2]
@ -243,7 +243,7 @@ void CarryableTurret::EventPlaceTurret(Event *ev)
if (trace.startsolid || trace.fraction < 1) { if (trace.startsolid || trace.fraction < 1) {
gi.DPrintf( gi.DPrintf(
"~*~*~ Not enough room to auto place protable turret at (%i %i %i)\n", "~*~*~ Not enough room to auto place portable turret at (%i %i %i)\n",
(int)origin[0], (int)origin[0],
(int)origin[1], (int)origin[1],
(int)origin[2] (int)origin[2]

View file

@ -957,7 +957,7 @@ Event EV_ScriptThread_HudDraw_VirtualSize
EV_DEFAULT, EV_DEFAULT,
"ii", "ii",
"index virtual", "index virtual",
"Sets if the huddraw element for given player should use virutal screen resolution for positioning and size", "Sets if the huddraw element for given player should use virtual screen resolution for positioning and size",
EV_NORMAL EV_NORMAL
); );
Event EV_ScriptThread_HudDraw_Color Event EV_ScriptThread_HudDraw_Color
@ -1369,7 +1369,7 @@ Event EV_ScriptThread_iHudDrawVirtualSize
EV_DEFAULT, EV_DEFAULT,
"eii", "eii",
"player index virtual", "player index virtual",
"Sets if the huddraw element for given player should use virutal screen resolution for positioning and size", "Sets if the huddraw element for given player should use virtual screen resolution for positioning and size",
EV_NORMAL EV_NORMAL
); );
Event EV_ScriptThread_IsArray Event EV_ScriptThread_IsArray
@ -3882,7 +3882,7 @@ void ScriptThread::EventHudDrawAlign(Event *ev)
} else if (h_align == "right") { } else if (h_align == "right") {
h_alignement = 2; h_alignement = 2;
} else { } else {
throw ScriptException("Wrong alignement h_align string for huddraw_align!\n"); throw ScriptException("Wrong alignment h_align string for huddraw_align!\n");
} }
if (v_align == "top") { if (v_align == "top") {
@ -3892,7 +3892,7 @@ void ScriptThread::EventHudDrawAlign(Event *ev)
} else if (v_align == "bottom") { } else if (v_align == "bottom") {
v_alignement = 2; v_alignement = 2;
} else { } else {
throw ScriptException("Wrong alignement v_align string for huddraw_align!\n"); throw ScriptException("Wrong alignment v_align string for huddraw_align!\n");
} }
HudDrawAlign(index, h_alignement, v_alignement); HudDrawAlign(index, h_alignement, v_alignement);
@ -5032,7 +5032,7 @@ void ScriptThread::EventIHudDrawAlign(Event *ev)
} else if (h_align == "right") { } else if (h_align == "right") {
h_alignement = 2; h_alignement = 2;
} else { } else {
throw ScriptException("Wrong alignement h_align string for ihuddraw_align!\n"); throw ScriptException("Wrong alignment h_align string for ihuddraw_align!\n");
} }
if (v_align == "top") { if (v_align == "top") {
@ -5042,7 +5042,7 @@ void ScriptThread::EventIHudDrawAlign(Event *ev)
} else if (v_align == "bottom") { } else if (v_align == "bottom") {
v_alignement = 2; v_alignement = 2;
} else { } else {
throw ScriptException("Wrong alignement v_align string for ihuddraw_align!\n"); throw ScriptException("Wrong alignment v_align string for ihuddraw_align!\n");
} }
iHudDrawAlign(player->edict - g_entities, index, h_alignement, v_alignement); iHudDrawAlign(player->edict - g_entities, index, h_alignement, v_alignement);

View file

@ -193,7 +193,7 @@ Event EV_Sentient_UseItem
EV_CONSOLE, EV_CONSOLE,
"si", "si",
"name weapon_hand", "name weapon_hand",
"Use the specified weapon or item in the hand choosen (optional).", "Use the specified weapon or item in the hand chosen (optional).",
EV_NORMAL EV_NORMAL
); );
Event EV_Sentient_SetBloodModel Event EV_Sentient_SetBloodModel
@ -391,7 +391,7 @@ Event EV_Sentient_UseWeaponClass
EV_CONSOLE, EV_CONSOLE,
"sI", "sI",
"name weapon_hand", "name weapon_hand",
"Use the weapon of the specified class in the hand choosen (optional).", "Use the weapon of the specified class in the hand chosen (optional).",
EV_NORMAL EV_NORMAL
); );
Event EV_Sentient_German Event EV_Sentient_German

View file

@ -73,7 +73,7 @@ Event EV_Turret_P_SetPlayerUsable
EV_DEFAULT, EV_DEFAULT,
"i", "i",
"state", "state",
"Sets wether the turret can be used by players. 0 means no, 1 means yes.", "Sets whether the turret can be used by players. 0 means no, 1 means yes.",
EV_NORMAL EV_NORMAL
); );
Event EV_Turret_AI_SetAimTarget Event EV_Turret_AI_SetAimTarget
@ -309,7 +309,7 @@ Event EV_Turret_SetUsable
EV_DEFAULT, EV_DEFAULT,
"i", "i",
"state", "state",
"Sets wether the turret can be used as a weapon. 0 means no, 1 means yes.", "Sets whether the turret can be used as a weapon. 0 means no, 1 means yes.",
EV_NORMAL EV_NORMAL
); );
Event EV_Turret_AI_SetBulletSpread Event EV_Turret_AI_SetBulletSpread

View file

@ -90,7 +90,7 @@ BEGIN
EDITTEXT IDC_PASSWORD,65,50,110,12,ES_PASSWORD | ES_AUTOHSCROLL EDITTEXT IDC_PASSWORD,65,50,110,12,ES_PASSWORD | ES_AUTOHSCROLL
EDITTEXT IDC_PROFILE_ID,65,65,110,12,ES_AUTOHSCROLL | ES_READONLY EDITTEXT IDC_PROFILE_ID,65,65,110,12,ES_AUTOHSCROLL | ES_READONLY
PUSHBUTTON "Authenticate",IDC_AUTHENTICATE,35,85,50,14 PUSHBUTTON "Authenticate",IDC_AUTHENTICATE,35,85,50,14
GROUPBOX "Persistant Data",IDC_STATIC,10,115,175,140 GROUPBOX "Persistent Data",IDC_STATIC,10,115,175,140
CONTROL "Private Read/Write",IDC_PRIVATE_RW,"Button", CONTROL "Private Read/Write",IDC_PRIVATE_RW,"Button",
BS_AUTORADIOBUTTON | WS_GROUP,20,130,77,10 BS_AUTORADIOBUTTON | WS_GROUP,20,130,77,10
CONTROL "Private Read-Only",IDC_PRIVATE_RO,"Button", CONTROL "Private Read-Only",IDC_PRIVATE_RO,"Button",

View file

@ -9,7 +9,7 @@
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
// This is declared as an extern so it can be overriden when testing // This is declared as an extern so it can be overridden when testing
#define SC_SERVICE_URL_FORMAT "http://%s.comp.pubsvs." GSI_DOMAIN_NAME "/CompetitionService/CompetitionService.asmx" #define SC_SERVICE_URL_FORMAT "http://%s.comp.pubsvs." GSI_DOMAIN_NAME "/CompetitionService/CompetitionService.asmx"
char scServiceURL[SC_SERVICE_MAX_URL_LEN] = ""; char scServiceURL[SC_SERVICE_MAX_URL_LEN] = "";

View file

@ -51,7 +51,7 @@ const char WS_AUTHSERVICE_SIGNATURE_KEY[] =
const char WS_AUTHSERVICE_SIGNATURE_EXP[] = const char WS_AUTHSERVICE_SIGNATURE_EXP[] =
"010001"; "010001";
// This is declared as an extern so it can be overriden when testing // This is declared as an extern so it can be overridden when testing
#define WS_LOGIN_SERVICE_URL_FORMAT "https://%s.auth.pubsvs." GSI_DOMAIN_NAME "/AuthService/AuthService.asmx" #define WS_LOGIN_SERVICE_URL_FORMAT "https://%s.auth.pubsvs." GSI_DOMAIN_NAME "/AuthService/AuthService.asmx"
char wsAuthServiceURL[WS_LOGIN_MAX_URL_LEN] = ""; char wsAuthServiceURL[WS_LOGIN_MAX_URL_LEN] = "";

View file

@ -293,7 +293,7 @@ typedef struct {
static fileHandleData_t fsh[MAX_FILE_HANDLES]; static fileHandleData_t fsh[MAX_FILE_HANDLES];
// TTimo - https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=540 // TTimo - https://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=540
// wether we did a reorder on the current search path when joining the server // whether we did a reorder on the current search path when joining the server
static qboolean fs_reordered; static qboolean fs_reordered;
// never load anything from pk3 files that are not present at the server when pure // never load anything from pk3 files that are not present at the server when pure

View file

@ -150,7 +150,7 @@ unsigned long sys_timeBase = 0;
/* current time in ms, using sys_timeBase as origin /* current time in ms, using sys_timeBase as origin
NOTE: sys_timeBase*1000 + curtime -> ms since the Epoch NOTE: sys_timeBase*1000 + curtime -> ms since the Epoch
0x7fffffff ms - ~24 days 0x7fffffff ms - ~24 days
although timeval:tv_usec is an int, I'm not sure wether it is actually used as an unsigned int although timeval:tv_usec is an int, I'm not sure whether it is actually used as an unsigned int
(which would affect the wrap period) */ (which would affect the wrap period) */
int curtime; int curtime;
int Sys_Milliseconds (void) int Sys_Milliseconds (void)