Fixed a horrible region coordinate bug

Coordinates are supposed to be stored by their x & y, but the sizes of the
tile sheets were getting mixed in as well. When trying to store a region
at (0, 20), it was being stored at (0, 260).

Another visual bug inside the tile sheet's rendering function masked this
issue until now.

Another thing to note is that I've removed an incredibly complex system
for updating the client's map. The new system may seem complex at first,
but it is straight forward compared to what it replaced.

I've also fixed a few logarithmic lagging points in the code.
This commit is contained in:
Kayne Ruse
2014-04-21 03:56:48 +10:00
parent 6c6a025f2a
commit b47191a0c1
5 changed files with 23 additions and 68 deletions
-1
View File
@@ -86,7 +86,6 @@ protected:
void RequestRegion(int x, int y);
//utilities
int CheckBufferDistance(Region* const);
void UpdateMap();
//globals