Index: server/server.cpp
===================================================================
--- server/server.cpp	(revision 7ca5d21c073cd474d1191369edaa8d07501511d6)
+++ server/server.cpp	(revision 694c3d24960a9af711962a12d5d064eae0f3762d)
@@ -710,5 +710,5 @@
          {
             // we need to make sure the player can move here
-            if (0 <= x && x < 300 && 0 <= y && y < 300 &&
+            if (0 <= x && x < gameMap->width*25 && 0 <= y && y < gameMap->height*25 &&
                gameMap->getElement(x/25, y/25) == WorldMap::TERRAIN_GRASS)
             {
