Fix various warnings.

This commit is contained in:
Marco Cawthorne 2024-01-30 00:42:10 -08:00
parent 31b88f63f2
commit 7e8d1aacdb
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
6 changed files with 14 additions and 2 deletions

View File

@ -51,6 +51,7 @@ Bot_AddBot_f(string botName)
for (i = 0i; i < g_botScriptCount; i++) {
if (g_bots[i].m_strName == botName) {
foundID = i;
break;
}
}
@ -126,6 +127,10 @@ BotProfile_Init(void)
botScript_t currentDef;
int braceDepth = 0i;
currentDef.m_strName = "";
currentDef.m_strNetName = "";
currentDef.m_strExtra = "";
g_botScriptCount = 0i;
if (autocvar(bot_enable, 1) == 0) {

View File

@ -100,7 +100,7 @@ trigger_monsterjump::Touch(entity touchingEntity)
{
vector targetVelocity = g_vec_null;
if (!touchingEntity.flags & FL_MONSTER) {
if (!(touchingEntity.flags & FL_MONSTER)) {
return;
}

View File

@ -70,6 +70,7 @@ public:
virtual void OnRemoveEntity(void);
virtual void ReceiveEntity(float,float);
virtual void RendererRestarted(void);
nonvirtual void LightChanged(float);
#endif
private:

View File

@ -59,8 +59,12 @@ public:
void env_funnel(void);
#ifdef SERVER
virtual void Respawn(void);
virtual void SpawnKey(string,string);
virtual void Save(float);
virtual void Restore(string, string);
virtual void EvaluateEntity(void);
virtual float SendEntity(entity,float);
virtual void Trigger(entity, triggermode_t);
@ -69,6 +73,7 @@ public:
virtual float predraw(void);
virtual void ReceiveEntity(float,float);
virtual void RendererRestarted(void);
nonvirtual void RenderGlow(vector, vector, float);
#endif
private:

View File

@ -296,7 +296,6 @@ env_instructor_hint::postdraw(void)
vector delta;
vector p2 = g_view.GetCameraOrigin();
vector ang = g_view.GetCameraAngle();
vector outputValue;
float leftValue;
float upValue;

View File

@ -98,6 +98,8 @@ public:
virtual float SendEntity(entity,float);
virtual void Trigger(entity, triggermode_t);
virtual void Input(entity, string, string);
virtual void Save(float);
virtual void Restore(string, string);
nonvirtual void DisableSmoker(void);
#else