0
0
Fork 0
mirror of https://github.com/nzp-team/quakec.git synced 2025-03-02 15:32:33 +00:00

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 // 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); precache_model(modelname);
setmodel(self, modelname); setmodel(self, modelname);

View file

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

View file

@ -106,6 +106,7 @@ void() PU_PopulateArray =
amount -= 1; amount -= 1;
powerup_struct temp; powerup_struct temp;
temp.id = -1;
PU_CopyStruct(temp, powerup_array[i]); PU_CopyStruct(temp, powerup_array[i]);
PU_CopyStruct(powerup_array[i], powerup_array[amount]); PU_CopyStruct(powerup_array[i], powerup_array[amount]);

View file

@ -519,7 +519,7 @@ void() PollPlayerPoints =
void() PlayerSpawn = void() PlayerSpawn =
{ {
entity spawnpoint; entity spawnpoint = world;
local_client = self; local_client = self;
self.isspec = FALSE; self.isspec = FALSE;
@ -573,7 +573,7 @@ void() PlayerSpawn =
} }
// Mapper doesn't have our co-op spawn set up.. // Mapper doesn't have our co-op spawn set up..
if (!spawnpoint) if (spawnpoint == world)
spawnpoint = find(world, classname, "info_player_start"); spawnpoint = find(world, classname, "info_player_start");

View file

@ -1451,7 +1451,7 @@ void(float side) W_Fire =
self.semi = true; self.semi = true;
} else if (side == S_LEFT) { } else if (side == S_LEFT) {
if (self.semi2) return; 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/switchon.wav");
precache_sound("sounds/weapons/tesla/shoot.wav"); precache_sound("sounds/weapons/tesla/shoot.wav");
break; break;
case W_GRENADE:
precache_model("models/props/grenade_bag.mdl");
break;
} }
} }