blue-nebula / base

Main repository of Blue Nebula, a fast-paced shooter with a unique parkour system. It is a fork of Red Eclipse and is free software.
https://blue-nebula.org
15 stars 6 forks source link

Fix game crash when burndelay is 0 bug #179

Closed MoonPadUSer closed 3 years ago

MoonPadUSer commented 3 years ago

Setting the burndelay variable to 0 crashes the game. To fix this we can't just set burndelay min to 1 because servers that don't have the patch, will just override it, therefore I had to use temp vars like _burndelay = std::max(burndelay, 1);

Closes: #177

voidanix commented 3 years ago

shockdelay suffers from the same issue, while you are at it consider taking a look there too

MoonPadUSer commented 3 years ago

shockdelay suffers from the same issue, while you are at it consider taking a look there too

I just made PR #182 :)