Half-Life: Only use flashlight when ITEM_SUIT is present.

This commit is contained in:
Marco Cawthorne 2019-09-01 10:08:17 +02:00
parent 7541db9f63
commit 05980cfb3e
1 changed files with 8 additions and 1 deletions

View File

@ -21,7 +21,14 @@ void Flashlight_Toggle(void)
return;
}
}
#ifdef VALVE
player pl = (player)self;
if (!(pl.g_items & ITEM_SUIT)) {
return;
}
#endif
if (self.health <= 0) {
return;
}