FIX attack bug

This commit is contained in:
Akshay Naik
2013-04-23 22:03:40 +05:30
parent def107a549
commit 130f2b2148
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ if(isset($_GET['o'])) {
}
$p_time = round($automation->procDistanceTime($p_to,$p_from,min($p_speeds),1)/$p_fastertroops);
$p_reference = $database->addAttack($prisoner['from'],$prisoner['t1'],$prisoner['t2'],$prisoner['t3'],$prisoner['t4'],$prisoner['t5'],$prisoner['t6'],$prisoner['t7'],$prisoner['t8'],$prisoner['t9'],$prisoner['t10'],$prisoner['t11'],3,0,0,0,0,0,0,0,0,0,0,0);
$database->addMovement(4,$prisoner['wref'],$prisoner['from'],$p_reference,time(),($p_time+time()));
$database->addMovement(4,$prisoner['wref'],$prisoner['from'],$p_reference,(microtime(true)),($p_time+microtime(true)));
$troops = $prisoner['t1']+$prisoner['t2']+$prisoner['t3']+$prisoner['t4']+$prisoner['t5']+$prisoner['t6']+$prisoner['t7']+$prisoner['t8']+$prisoner['t9']+$prisoner['t10']+$prisoner['t11'];
$database->modifyUnit($prisoner['wref'],array("99o"),array($troops),array(0));
$database->deletePrisoners($prisoner['id']);
+2 -2
View File
@@ -969,8 +969,8 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%movement` (
`to` int(11) unsigned NOT NULL DEFAULT '0',
`ref` int(11) unsigned NOT NULL DEFAULT '0',
`ref2` int(11) unsigned NOT NULL DEFAULT '0',
`starttime` int(11) unsigned NOT NULL DEFAULT '0',
`endtime` int(11) unsigned NOT NULL DEFAULT '0',
`starttime` float(20) unsigned NOT NULL DEFAULT '0',
`endtime` float(20) unsigned NOT NULL DEFAULT '0',
`proc` tinyint(1) unsigned NOT NULL DEFAULT '0',
`send` tinyint(1) unsigned NOT NULL,
`wood` int(11) unsigned NOT NULL,