From b14568c7e0cd815fcde4a05804a3b2b959765375 Mon Sep 17 00:00:00 2001 From: TienTN Date: Sun, 4 Sep 2016 14:49:47 +0700 Subject: [PATCH] Fix the session problem In README note #7 --- GameEngine/Session.php | 2 ++ README | 1 + 2 files changed, 3 insertions(+) diff --git a/GameEngine/Session.php b/GameEngine/Session.php index 262166c8..fb5ab71b 100755 --- a/GameEngine/Session.php +++ b/GameEngine/Session.php @@ -61,6 +61,8 @@ class Session { var $villages = array(); function Session() { + global $database; //TienTN fix + $this->time = time(); if (!isset($_SESSION)) session_start(); diff --git a/README b/README index f6e707ca..a0c307d7 100644 --- a/README +++ b/README @@ -21,6 +21,7 @@ My changes notes: the moving function will be crashed(freeze, you can't move any more). I found out that unx.js handle a static map size(400x400). So I fixed this with a m_c.world_max variable from mapview.tpl and changed the unx.js accordingly. +7. Fix the constructor global variable missing in Session.php Note for the original code: The last commit 4372c40 from Shadowss/TravianZ is on Jul 6 2016, with note: