Skip to content

Commit

Permalink
canConquerOasis Call to a member function fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DPStokes committed Nov 21, 2011
1 parent 1c9d506 commit e608e1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GameEngine/Database/db_MYSQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,8 @@ public function canConquerOasis($vref,$wref) {
$OasisInfo = $this->getOasisInfo($wref);
$troopcount = $this->countOasisTroops($wref);
if($OasisInfo['conqured'] == 0 || $OasisInfo['conqured'] != 0 && $OasisInfo['loyalty'] < 99 / min(3,(4-$this->VillageOasisCount($OasisInfo['conqured']))) && $troopcount == 0) {
$CoordsVillage = $database->getCoor($vref);
$CoordsOasis = $database->getCoor($wref);
$CoordsVillage = $this->getCoor($vref);
$CoordsOasis = $this->getCoor($wref);
if(abs($CoordsOasis['x']-$CoordsVillage['x'])<=3 && abs($CoordsOasis['y']-$CoordsVillage['y'])<=3) {
return True;
} else {
Expand Down

0 comments on commit e608e1e

Please sign in to comment.