mirror of
https://github.com/nzp-team/quakec.git
synced 2025-03-22 02:42:15 +00:00
SERVER: Allow setting -1 for Barricade max health
This commit is contained in:
parent
1fe616c2ea
commit
e26fd61044
1 changed files with 2 additions and 1 deletions
|
@ -398,11 +398,12 @@ void() item_barricade =
|
|||
self.health = 6;
|
||||
|
||||
// Max Health
|
||||
if (!self.health_delay || self.health_delay > 6 || self.health_delay < 0)
|
||||
if (!self.health_delay || self.health_delay > 6)
|
||||
self.health_delay = 6;
|
||||
|
||||
// Restore health state if using compatibility hack
|
||||
if (self.health == -1) self.health = 0;
|
||||
if (self.health_delay == -1) self.health_delay = 0;
|
||||
|
||||
// cypress -- i was going to add a check if the start health was greater
|
||||
// than max here, but i figured someone might want to make a weird ass
|
||||
|
|
Loading…
Reference in a new issue