fix defender report icons

This commit is contained in:
unknown
2012-04-01 17:23:55 +03:00
parent e090572205
commit 9d261523e6
2 changed files with 16 additions and 7 deletions
+4
View File
@@ -69,7 +69,11 @@ class Generator {
$speed = $distance <= TS_THRESHOLD ? $speed : $speed * ( ( TS_THRESHOLD + ( $distance - TS_THRESHOLD ) * $bid14[$building->gettypeLevel(14)]['attri'] / 100 ) / $distance ) ;
}
}
if($speed!=0){
return round(($distance/$speed) * 3600 / INCREASE_SPEED);
}else{
return round($distance * 3600 / INCREASE_SPEED);
}
}
public function getTimeFormat($time) {