Fix the map moving bug which will cause map hanging.

Please read for detail README in the #6 entry.
This commit is contained in:
TienTN
2016-09-04 12:33:34 +07:00
parent 8545e419c6
commit 33c334801e
3 changed files with 308 additions and 67 deletions
+6
View File
@@ -14,6 +14,12 @@ My changes notes:
VM5051:1 Uncaught SyntaxError: Unexpected token )
jd.onreadystatechange @ unx.js?0ac36:170
This error arises when moving to the border of the map.
6. Fix the map loop moving bug:
Symptom: For map not set to size 400x400, on the map page,
when moving on and on in one direction, cross the map border(loop) two times,
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.
Note for the original code:
The last commit 4372c40 from Shadowss/TravianZ is on Jul 6 2016, with note: