mirror of
https://github.com/nzp-team/quakec.git
synced 2025-01-31 13:40:52 +00:00
SERVER: Fix most QC warnings, spam included
This commit is contained in:
parent
cf9466ed0f
commit
57edbc23df
6 changed files with 13 additions and 11 deletions
|
@ -532,7 +532,7 @@ void (float achievement_id, float progress_value, optional entity who) UpdateAch
|
|||
// Unrelated to engine, but custom functions
|
||||
// *****************************************
|
||||
|
||||
inline void(string modelname) Precache_Set = // Precache model, and set myself to it
|
||||
void(string modelname) Precache_Set = // Precache model, and set myself to it
|
||||
{
|
||||
precache_model(modelname);
|
||||
setmodel(self, modelname);
|
||||
|
|
|
@ -215,13 +215,11 @@ void() SUB_Null2 = {};
|
|||
|
||||
#define VEC_VIEW_OFS '0 0 32'
|
||||
|
||||
#ifndef HANDHELD
|
||||
#define MAX_ZOMB 24
|
||||
|
||||
#ifndef PC
|
||||
#ifndef QUAKESPASM
|
||||
#define MAX_ZOMB 12
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#define MAX_ZOMB 12
|
||||
#endif // HANDHELD
|
||||
|
||||
vector trace_plane_normal;
|
||||
|
||||
|
@ -526,4 +524,4 @@ float sndActivCnt;
|
|||
.vector rendercolor;
|
||||
#endif
|
||||
|
||||
float revive_index;
|
||||
float revive_index;
|
||||
|
|
|
@ -106,6 +106,7 @@ void() PU_PopulateArray =
|
|||
amount -= 1;
|
||||
|
||||
powerup_struct temp;
|
||||
temp.id = -1;
|
||||
|
||||
PU_CopyStruct(temp, powerup_array[i]);
|
||||
PU_CopyStruct(powerup_array[i], powerup_array[amount]);
|
||||
|
|
|
@ -519,7 +519,7 @@ void() PollPlayerPoints =
|
|||
|
||||
void() PlayerSpawn =
|
||||
{
|
||||
entity spawnpoint;
|
||||
entity spawnpoint = world;
|
||||
local_client = self;
|
||||
|
||||
self.isspec = FALSE;
|
||||
|
@ -573,7 +573,7 @@ void() PlayerSpawn =
|
|||
}
|
||||
|
||||
// Mapper doesn't have our co-op spawn set up..
|
||||
if (!spawnpoint)
|
||||
if (spawnpoint == world)
|
||||
spawnpoint = find(world, classname, "info_player_start");
|
||||
|
||||
|
||||
|
|
|
@ -1451,7 +1451,7 @@ void(float side) W_Fire =
|
|||
self.semi = true;
|
||||
} else if (side == S_LEFT) {
|
||||
if (self.semi2) return;
|
||||
self.semi2 == true;
|
||||
self.semi2 = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3405,6 +3405,9 @@ void(float weptype) precache_extra =
|
|||
precache_sound("sounds/weapons/tesla/switchon.wav");
|
||||
precache_sound("sounds/weapons/tesla/shoot.wav");
|
||||
break;
|
||||
case W_GRENADE:
|
||||
precache_model("models/props/grenade_bag.mdl");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue