1
Fork 0
mirror of https://github.com/Steffo99/iiiiil-gioco.git synced 2024-11-21 23:44:21 +00:00
This commit is contained in:
Steffo 2016-01-12 17:36:41 +01:00
parent 3d011ea4a0
commit 6296251523

View file

@ -76,7 +76,7 @@ class Entity
//Danneggia di x l'entità
void damage(int x)
{
if(hp - x < 0)
if(hp - x <= 0)
{
kill();
}