diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-03 19:54:16 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2011-01-03 19:54:16 +0100 |
commit | 8404033af0218ccd0221bf6ae9c0939bec86c4c9 (patch) | |
tree | c3958616add91c47291d0d366b66af980d5bcc3a /src/game-server/map.cpp | |
parent | ac0a394505c0cf1124f48e4700e214d337c2e527 (diff) | |
download | manaserv-8404033af0218ccd0221bf6ae9c0939bec86c4c9.tar.gz manaserv-8404033af0218ccd0221bf6ae9c0939bec86c4c9.tar.xz manaserv-8404033af0218ccd0221bf6ae9c0939bec86c4c9.zip |
Got rid of the superfluous DEFAULT_TILE_HEIGHT/WIDTH.
We've got DEFAULT_TILE_LENGTH in defines.h for that.
Trivial fix.
Diffstat (limited to 'src/game-server/map.cpp')
-rw-r--r-- | src/game-server/map.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game-server/map.cpp b/src/game-server/map.cpp index 1464402..8a3c3e6 100644 --- a/src/game-server/map.cpp +++ b/src/game-server/map.cpp @@ -25,6 +25,8 @@ #include "game-server/map.h" +#include "defines.h" + // Basic cost for moving from one tile to another. // Used in findPath() function when computing the A* path algorithm. static int const basicCost = 100; @@ -43,7 +45,8 @@ bool Location::operator< (const Location &loc) const return tile->Fcost > loc.tile->Fcost; } -Map::Map(int width, int height, int twidth, int theight): +Map::Map(int width = 0, int height = 0, + int twidth = DEFAULT_TILE_LENGTH, int theight = DEFAULT_TILE_LENGTH): mWidth(width), mHeight(height), mTileWidth(twidth), mTileHeight(theight), onClosedList(1), onOpenList(2) |