From 2e41925e37934982b6660c0fcff55a8c0f2eec4d Mon Sep 17 00:00:00 2001 From: Shadowss Date: Fri, 25 Oct 2013 09:57:52 +0300 Subject: [PATCH] fix Field Natar village set to type=3 --- install/include/wdata.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install/include/wdata.php b/install/include/wdata.php index 698bf119..f70b1b44 100644 --- a/install/include/wdata.php +++ b/install/include/wdata.php @@ -19,10 +19,10 @@ $y=(WORLD_MAX-$i); $x=((WORLD_MAX*-1)+$j); //choose a field type - if($x == 0 & $y == 0){ - $typ='3'; - $otype='0'; - }else{ + if(($x == 0 & $y == 0) || ($x == WORLD_MAX & $y == WORLD_MAX)) { + $typ='3'; + $otype='0'; + }else{ $rand=rand(1, 1000); if("10" >= $rand){ $typ='1'; @@ -113,4 +113,4 @@ $y=(WORLD_MAX-$i); header("Location: ../index.php?s=4"); -?> \ No newline at end of file +?>