Merge pull request #437 from Shadowss/patch-102

Update build.php
This commit is contained in:
yi12345
2013-11-01 00:52:07 -07:00
+7 -7
View File
@@ -340,12 +340,12 @@ if(isset($_GET['id']) or isset($_GET['gid']) or $route == 1 or isset($_GET['rout
else { else {
include("Templates/Build/".$village->resarray['f'.$_GET['id'].'t'].".tpl"); include("Templates/Build/".$village->resarray['f'.$_GET['id'].'t'].".tpl");
} }
if($_GET['buildingFinish'] == 1) { if($_GET['buildingFinish'] == 1) {
if($session->gold >= 2) { if($session->gold >= 2) {
$building->finishAll(); $building->finishAll();
header("Location: build.php?gid=15"); header("Location: build.php?gid=".$_GET['id']."&ty=".$_GET['ty']);
} }
} }
} }
}else{ }else{
header("Location: dorf1.php"); header("Location: dorf1.php");
@@ -385,4 +385,4 @@ echo round(($generator->pageLoadTimeEnd()-$start)*1000);
<div id="ce"> </div> <div id="ce"> </div>
</body> </body>
</html> </html>