Skip to content
Browse files

Removing default argument values from Map definition

The default argument values had no effect, because they are
not in the declaration.
Updating the codeblock project, because protocol.h had been renamed.

Reviewed-by: Bertram
  • Loading branch information...
1 parent 7f712f1 commit d65dfcfa04a622effcd4cebdfaa5e713ca7627d8 Stefan Dombrowski committed Jan 10, 2011
Showing with 3 additions and 4 deletions.
  1. +1 −1 accountserver.cbp
  2. +1 −1 gameserver.cbp
  3. +1 −2 src/game-server/map.cpp
View
2 accountserver.cbp
@@ -144,7 +144,7 @@
<Unit filename="src\net\netcomputer.cpp" />
<Unit filename="src\net\netcomputer.h" />
<Unit filename="src\utils\point.h" />
- <Unit filename="src\protocol.h" />
+ <Unit filename="src\manaserv_protocol.h" />
<Unit filename="src\serialize\characterdata.h" />
<Unit filename="src\utils\base64.cpp" />
<Unit filename="src\utils\base64.h" />
View
2 gameserver.cbp
@@ -172,7 +172,7 @@
<Unit filename="src\net\netcomputer.cpp" />
<Unit filename="src\net\netcomputer.h" />
<Unit filename="src\utils\point.h" />
- <Unit filename="src\protocol.h" />
+ <Unit filename="src\manaserv_protocol.h" />
<Unit filename="src\scripting\lua.cpp" />
<Unit filename="src\scripting\luascript.cpp" />
<Unit filename="src\scripting\luascript.h" />
View
3 src/game-server/map.cpp
@@ -45,8 +45,7 @@ bool Location::operator< (const Location &loc) const
return tile->Fcost > loc.tile->Fcost;
}
-Map::Map(int width = 0, int height = 0,
- int twidth = DEFAULT_TILE_LENGTH, int theight = DEFAULT_TILE_LENGTH):
+Map::Map(int width, int height, int twidth, int theight):
mWidth(width), mHeight(height),
mTileWidth(twidth), mTileHeight(theight),
onClosedList(1), onOpenList(2)

0 comments on commit d65dfcf

Please sign in to comment.
Something went wrong with that request. Please try again.