v0.21 BUG - Crash when Taurog halves health below 1

Got a problem? Let us know!

v0.21 BUG - Crash when Taurog halves health below 1

Postby spoomak on Sat Jul 30, 2011 1:37 pm

A search on this bug didn't find anything so I guess it hasn't been reported yet.

When worshipping Taurog and piety drops below 0 (by using magic), the player's health halves. When repeating this, the player's health can eventually drop to 1. If the player does this one more time when he has 1 health, the game immediately crashes with the following error message:

Code: Select all
ERROR in
action number 1
of  Step Event
for object Hero:

Error in code at line 210:
   if (hp/max_hp<0.2) global.accolade[A_TANK]=0;

at position 9: Division by 0.


I thought this bug was funny. Division by 0 is so classic. The line of code shown seems to remove the TANK award from the player's awards.
spoomak
 
Posts: 50
Joined: Sun Jun 05, 2011 11:42 am

Re: v0.21 BUG - Crash when Taurog halves health below 1

Postby dislekcia on Sun Jul 31, 2011 11:08 am

Ah, int rounding. That final refuge for the criminally insane.

Thanks for the catch, that particular accolade has been rather annoying over the course of development.
User avatar
dislekcia
 
Posts: 1723
Joined: Fri Mar 25, 2011 5:58 pm
Location: Cape Town, South Africa


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest