Minor cleanup around some well deserved warnings

This commit is contained in:
Marco Cawthorne 2022-07-10 13:21:16 -07:00
parent e78ae3cf86
commit e2299d8d22
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
3 changed files with 12 additions and 5 deletions

View File

@ -29,7 +29,6 @@ TFCGameRules::DropGoalItem(NSClientPlayer pp)
if (!(pp.g_items & ITEM_GOALITEM))
return;
item_tfgoal target;
for (entity e = world; (e = find(e, ::classname, "item_tfgoal"));) {
@ -90,6 +89,13 @@ TFCGameRules::PlayerDisconnect(NSClientPlayer pl)
pl.SendFlags = PLAYER_MODELINDEX;
}
void
TFCGameRules_PlayerRespawn(void)
{
TFCGameRules rule = (TFCGameRules)g_grMode;
rule.PlayerRespawn((NSClientPlayer)self);
}
void
TFCGameRules::PlayerDeath(NSClientPlayer pp)
{
@ -98,7 +104,8 @@ TFCGameRules::PlayerDeath(NSClientPlayer pp)
DropGoalItem(pp);
pl.SetSolid(SOLID_NOT);
pl.SetMovetype(MOVETYPE_NONE);
pl.think = PlayerRespawn;
pl.think = TFCGameRules_PlayerRespawn;
pl.nextthink = time + 4.0f;
/* play the iconic death sound */

View File

@ -38,7 +38,7 @@ TFCTeleporter::Touch(entity eToucher)
if (m_flNextTeleport > time)
return;
TFCTeleporter target = world;
TFCTeleporter target = __NULL__;
string exitname;
if (classname == "TFCTeleporter")

View File

@ -37,7 +37,7 @@
#define ITEM_GRAPPLE 0x00080000
#define ITEM_SUIT 0x00100000
#define ITEM_UNUSED22 0x00200000
#define ITEM_GOALITEM 0x00200000
#define ITEM_UNUSED23 0x00400000
#define ITEM_UNUSED24 0x00800000
#define ITEM_UNUSED25 0x01000000
@ -47,4 +47,4 @@
#define ITEM_UNUSED29 0x10000000
#define ITEM_UNUSED30 0x20000000
#define ITEM_UNUSED31 0x40000000
#define ITEM_GOALITEM 0x80000000
#define ITEM_UNUSED32 0x80000000