mirror of
https://github.com/Steffo99/iiiiil-gioco.git
synced 2024-11-21 23:44:21 +00:00
Ops.
This commit is contained in:
parent
3d011ea4a0
commit
6296251523
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -76,7 +76,7 @@ class Entity
|
||||||
//Danneggia di x l'entità
|
//Danneggia di x l'entità
|
||||||
void damage(int x)
|
void damage(int x)
|
||||||
{
|
{
|
||||||
if(hp - x < 0)
|
if(hp - x <= 0)
|
||||||
{
|
{
|
||||||
kill();
|
kill();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue