From 6296251523d4ef6dee1ffd3618c8ba63dc894a7e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 12 Jan 2016 17:36:41 +0100 Subject: [PATCH] Ops. --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 2021038..28781f6 100644 --- a/main.cpp +++ b/main.cpp @@ -76,7 +76,7 @@ class Entity //Danneggia di x l'entità void damage(int x) { - if(hp - x < 0) + if(hp - x <= 0) { kill(); }