maniaplanet / game-modes

Maniaplanet scripts and resources
https://www.maniaplanet.com/
GNU Lesser General Public License v3.0
30 stars 17 forks source link

[Joust] Crash on RequestRespawn & ArmorEmpty events when having 1 armor #7

Open ProfessorLaw opened 4 years ago

ProfessorLaw commented 4 years ago

Hello there !

On Joust script, a crash will happen if the player is having only 1 armor and triggers the OnArmorEmpty or OnPlayerRequestRespawn (falls into offzone or press backspace). This is because JoustRespawnPlayer function is called with an Armor parameter set to 0 in that case.

Screenshots : image

image

I will include a patch proposal soon.

Thank you !

ProfessorLaw commented 4 years ago

@Aessi Here's my patch proposal, in case you might want to use it ! :) Have a nice day !