more updates

This commit is contained in:
unknown
2012-09-05 17:28:31 +03:00
parent fdc11a8408
commit 800627b813
7 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -3825,7 +3825,7 @@ $crannyimg = "<img src=\"".GP_LOCATE."img/g/g23.gif\" height=\"20\" width=\"15\"
foreach($harray as $hdata){
if((time()-$hdata['lastupdate'])>=1){
if($hdata['health']<100 and $hdata['health']>0){
$reg = $hdata['health']+$hdata['regeneration']*5*ceil(SPEED/10)/86400*(time()-$hdata['lastupdate']);
$reg = $hdata['health']+$hdata['regeneration']*5*SPEED/86400*(time()-$hdata['lastupdate']);
if($reg <= 100){
$database->modifyHero("health",$reg,$hdata['heroid']);
}else{
+1 -1
View File
@@ -221,7 +221,7 @@ class MYSQL_DB {
}
function setDeleting($uid, $mode) {
$time = time() + 5 * 3600;
$time = time() + 72 * 3600;
if(!$mode) {
$q = "INSERT into " . TB_PREFIX . "deleting values ($uid,$time)";
} else {
+1 -1
View File
@@ -106,7 +106,7 @@ public function procMtime($time, $pref = 3) {
break;
}
*/
- $time += 3600*1; //Edit this yourself
- $time += 3600*0; //Edit this yourself
+ $time += 0; //Edit this yourself
$today = date('d',time())-1;
-1
View File
@@ -168,7 +168,6 @@ class Session {
if($this->userarray['b4'] > $this->time) {
$this->bonus4 = 1;
}
$this->money = $this->userarray['money'];
}
private function SurfControl(){