Merge pull request #416 from Shadowss/patch-87

fix Field Natar village set to type=3
This commit is contained in:
yi12345
2013-10-31 05:29:13 -07:00
+5 -5
View File
@@ -19,10 +19,10 @@ $y=(WORLD_MAX-$i);
$x=((WORLD_MAX*-1)+$j); $x=((WORLD_MAX*-1)+$j);
//choose a field type //choose a field type
if($x == 0 & $y == 0){ if(($x == 0 & $y == 0) || ($x == WORLD_MAX & $y == WORLD_MAX)) {
$typ='3'; $typ='3';
$otype='0'; $otype='0';
}else{ }else{
$rand=rand(1, 1000); $rand=rand(1, 1000);
if("10" >= $rand){ if("10" >= $rand){
$typ='1'; $typ='1';
@@ -113,4 +113,4 @@ $y=(WORLD_MAX-$i);
header("Location: ../index.php?s=4"); header("Location: ../index.php?s=4");
?> ?>