sultim-t / prboom-plus-rt

823 stars 49 forks source link

Do not enable radsuit palette unconditionally #60

Closed kd-11 closed 2 years ago

kd-11 commented 2 years ago

This assert (https://github.com/sultim-t/prboom-plus-rt/blob/master/prboom2/src/st_stuff.c#L885) will always fire when the radsuit is about to die out because the radsuit powerup is enabled here (https://github.com/sultim-t/prboom-plus-rt/blob/master/prboom2/src/st_stuff.c#L873) but the palette is disabled when the remaining ticks falls below 128 here (https://github.com/sultim-t/prboom-plus-rt/blob/master/prboom2/src/st_stuff.c#L819) This bug is 100% reproducible for me; tested on E1M5 when using the secret radsuit next to the secret chainsaw.