mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-10 08:44:25 +00:00
Broly: fix underflow on remaining timer
- Fix Fuel Canister setting player's hitlag to -1, causing SPB to stop thinking
This commit is contained in:
parent
266e36928b
commit
061e3c282c
1 changed files with 1 additions and 1 deletions
|
|
@ -44,7 +44,7 @@ struct Broly : Mobj
|
|||
|
||||
bool valid() const { return duration(); }
|
||||
|
||||
tic_t remaining() const { return tics - kBufferTics; }
|
||||
tic_t remaining() const { return tics > kBufferTics ? tics - kBufferTics : 0u; }
|
||||
|
||||
Fixed linear() const { return (remaining() * FRACUNIT) / duration(); }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue