SERVER: Fix most QC warnings, spam included

This commit is contained in:
Steam Deck User 2023-01-17 12:15:50 -05:00
parent cf9466ed0f
commit 57edbc23df
6 changed files with 13 additions and 11 deletions

View file

@ -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);

View file

@ -215,13 +215,11 @@ void() SUB_Null2 = {};
#define VEC_VIEW_OFS '0 0 32'
#ifndef HANDHELD
#define MAX_ZOMB 24
#ifndef PC
#ifndef QUAKESPASM
#else
#define MAX_ZOMB 12
#endif
#endif
#endif // HANDHELD
vector trace_plane_normal;

View file

@ -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]);

View file

@ -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");

View file

@ -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;
}
}

View file

@ -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;
}
}