From 605201290b24ba0761609cbc04bbe9049e313bbd Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 9 Oct 2012 12:05:39 +0200 Subject: [PATCH] update for hero --- GameEngine/Automation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 36242eae..dba61a2b 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -3855,7 +3855,7 @@ $crannyimg = "modifyHero("lastupdate",time(),$hdata['heroid']); } } - if($hdata['experience'] > $hero_levels[$hdata['level']+1] && $hdata['level'] < 100){ + while($hdata['experience'] > $hero_levels[$hdata['level']+1] && $hdata['level'] < 100){ mysql_query("UPDATE " . TB_PREFIX ."hero SET level = level + 1 WHERE heroid = '".$hdata['heroid']."'"); mysql_query("UPDATE " . TB_PREFIX ."hero SET points = points + 5 WHERE heroid = '".$hdata['heroid']."'"); }