Skip to content

Commit

Permalink
Remaining fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Jun 10, 2016
1 parent 9f3cbdf commit b723ae1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/Planet.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public static function planetBombing($pdo_db, $db, $lang, $langvars, \Tki\Reg $t
\Tki\Db::logDbErrors($pdo_db, $db, $res, __LINE__, __FILE__);
}

public static function planetCombat($pdo_db, $db, $lang, $langvars, \Tki\Reg $tkireg)
public static function planetCombat($pdo_db, $db, $lang, $langvars, \Tki\Reg $tkireg, $template)
{
global $playerinfo, $ownerinfo, $planetinfo;
global $planetbeams, $planetfighters, $planetshields, $planettorps, $attackerbeams, $attackerfighters, $attackershields;
Expand Down Expand Up @@ -621,7 +621,7 @@ public static function planetCombat($pdo_db, $db, $lang, $langvars, \Tki\Reg $tk

public static function shipToShip($pdo_db, $db, $langvars, $ship_id, \Tki\Reg $tkireg, $playerinfo)
{
global $attackerbeams, $attackerfighters, $attackershields, $attackertorps, $attackerarmor, $attackertorpdamage, $armor_lost, $fighters_lost;
global $attackerbeams, $attackerfighters, $attackershields, $attackertorps, $attackerarmor, $attackertorpdamage;

$resx = $db->Execute("LOCK TABLES {$db->prefix}ships WRITE, {$db->prefix}planets WRITE, {$db->prefix}sector_defence WRITE, {$db->prefix}universe WRITE, {$db->prefix}adodb_logsql WRITE, {$db->prefix}logs WRITE, {$db->prefix}bounty WRITE, {$db->prefix}news WRITE, {$db->prefix}zones READ");
\Tki\Db::logDbErrors($pdo_db, $db, $resx, __LINE__, __FILE__);
Expand Down
2 changes: 1 addition & 1 deletion planet.php
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@
}
else
{
BadPlanet::planetCombat($pdo_db, $db, $lang, $langvars, $tkireg);
BadPlanet::planetCombat($pdo_db, $db, $lang, $langvars, $tkireg, $template);
}
}
}
Expand Down

0 comments on commit b723ae1

Please sign in to comment.