summaryrefslogtreecommitdiff
path: root/src/game-server/map.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/map.hpp')
-rw-r--r--src/game-server/map.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/game-server/map.hpp b/src/game-server/map.hpp
index 6e70b519..fab5baaf 100644
--- a/src/game-server/map.hpp
+++ b/src/game-server/map.hpp
@@ -106,7 +106,8 @@ class Map
/**
* Constructor that takes initial map size as parameters.
*/
- Map(int width = 0, int height = 0, int twidth = 32, int theight = 32);
+ Map(int width = 0, int height = 0,
+ int twidth = DEFAULT_TILE_WIDTH, int theight = DEFAULT_TILE_HEIGHT);
/**
* Destructor.
@@ -159,13 +160,13 @@ class Map
* Returns the tile width of this map.
*/
int getTileWidth() const
- { return tileWidth; }
+ { return mTileWidth; }
/**
* Returns the tile height used by this map.
*/
int getTileHeight() const
- { return tileHeight; }
+ { return mTileHeight; }
/**
* Returns a general map property defined in the map file
@@ -204,7 +205,7 @@ class Map
// map properties
int mWidth, mHeight;
- int tileWidth, tileHeight;
+ int mTileWidth, mTileHeight;
std::map<std::string, std::string> mProperties;
// Pathfinding members