From 4c2c769a449e44fe05918d575b64985fba2c4aaf Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Wed, 18 Oct 2017 12:43:37 +0200 Subject: [PATCH] chore: ToDo and formatting --- GameEngine/Building.php | 2 +- build.php | 2 +- todo.txt | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/GameEngine/Building.php b/GameEngine/Building.php index ecb481ae..d2f17e5b 100755 --- a/GameEngine/Building.php +++ b/GameEngine/Building.php @@ -646,7 +646,7 @@ class Building { } } else { - return ($village->resarray['f'.$field] == count($dataarray) - $loop); + return ($village->resarray['f'.$field] == count($dataarray) - $loop); } } diff --git a/build.php b/build.php index cad11a3a..a30df366 100644 --- a/build.php +++ b/build.php @@ -33,7 +33,7 @@ if(isset($_GET['gid'])) { if(isset($_POST['t'])){ $_GET['t'] = preg_replace("/[^a-zA-Z0-9_-]/","",$_POST['t']); } -if(isset($_GET['id'])) { +if(isset($_GET['id'])) { if (!ctype_digit(preg_replace("/[^a-zA-Z0-9_-]/","",$_GET['id']))){ $_GET['id'] = "1"; } diff --git a/todo.txt b/todo.txt index 6299e9e3..0aff34b0 100644 --- a/todo.txt +++ b/todo.txt @@ -24,4 +24,5 @@ - sending messages to players via Admin doesn't work - check aliance invitation accepting - apparently it doesn't work too well on first try? - normalize forum tables - varchar is used for numeric values and is joined with int field -- task 1 => construct woodcutter will not reload the page when finished, so it would still seem that woodcutter build is in progress \ No newline at end of file +- task 1 => construct woodcutter will not reload the page when finished, so it would still seem that woodcutter build is in progress +- it's possible to train 2 senators - when 1 is trained, another one is possible to be trained \ No newline at end of file