summaryrefslogtreecommitdiff
path: root/src/game-server/commandhandler.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:05:18 +0200
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-04-26 17:18:21 +0200
commit43e99491a76bb85faf60c004e84b6c2b14cf41e7 (patch)
tree4aba689b76138118b4da043425fb3e8576db418c /src/game-server/commandhandler.cpp
parente726c34606f85347e70a0deb6b180db03b6d0c25 (diff)
downloadmanaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.gz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.bz2
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.tar.xz
manaserv-43e99491a76bb85faf60c004e84b6c2b14cf41e7.zip
Standardize on the position of the const keyword
Same as for the client.
Diffstat (limited to 'src/game-server/commandhandler.cpp')
-rw-r--r--src/game-server/commandhandler.cpp37
1 files changed, 19 insertions, 18 deletions
diff --git a/src/game-server/commandhandler.cpp b/src/game-server/commandhandler.cpp
index 3e61fe8f..cf263103 100644
--- a/src/game-server/commandhandler.cpp
+++ b/src/game-server/commandhandler.cpp
@@ -22,21 +22,22 @@
#include <sstream>
#include "defines.h"
-#include "commandhandler.hpp"
-#include "accountconnection.hpp"
-#include "character.hpp"
-#include "gamehandler.hpp"
-#include "inventory.hpp"
-#include "item.hpp"
-#include "itemmanager.hpp"
-#include "mapmanager.hpp"
-#include "monster.hpp"
-#include "monstermanager.hpp"
-#include "state.hpp"
-
-#include "../common/transaction.hpp"
-
-#include "../utils/string.hpp"
+
+#include "game-server/commandhandler.hpp"
+#include "game-server/accountconnection.hpp"
+#include "game-server/character.hpp"
+#include "game-server/gamehandler.hpp"
+#include "game-server/inventory.hpp"
+#include "game-server/item.hpp"
+#include "game-server/itemmanager.hpp"
+#include "game-server/mapmanager.hpp"
+#include "game-server/monster.hpp"
+#include "game-server/monstermanager.hpp"
+#include "game-server/state.hpp"
+
+#include "common/transaction.hpp"
+
+#include "utils/string.hpp"
static void say(const std::string error, Character *player)
{
@@ -418,7 +419,7 @@ static void handleSpawn(Character *player, std::string &args)
{
MonsterClass *mc;
MapComposite *map = player->getMap();
- Point const &pos = player->getPosition();
+ const Point &pos = player->getPosition();
int value, id;
// get the arguments
@@ -504,7 +505,7 @@ static void handleGoto(Character *player, std::string &args)
// move the player to where the other player is
MapComposite *map = other->getMap();
- Point const &pos = other->getPosition();
+ const Point &pos = other->getPosition();
GameState::warp(player, map, pos.x, pos.y);
}
@@ -533,7 +534,7 @@ static void handleRecall(Character *player, std::string &args)
// move the other player to where the player is
MapComposite *map = player->getMap();
- Point const &pos = player->getPosition();
+ const Point &pos = player->getPosition();
GameState::warp(other, map, pos.x, pos.y);
}