advocaite / Travianx

A clone of popular Game travian http://dafedteam.com

Home Page:http://dafedteam.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minor bug: enough resource time is wrong

inblackhole opened this issue · comments

It's a minor bug, just to record it here.
http://imgur.com/a/Om6V0

do not trust the javascript or the given time because the calculations are very poorly done I go to spend all or almost all function correctly written with a refreshing and not to correct for that time bug appears

and offset the server time and certainly at the top of a php error that shifts the header

Barrack training finish display time is wrong too.
http://imgur.com/icLq2

Hello,

this works for me.

GameEngine/Generator.php
Line:105
$time += 3600*7; //Edit this yourself
make it
$time += 0; //Edit this yourself

Yes, that's a quick fix.

send a pull request #73 and close here