summaryrefslogtreecommitdiff
path: root/src/game-server/commandhandler.cpp
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@hotmail.com>2010-11-24 13:57:16 +1300
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-12-08 00:07:16 +0100
commitb0ecb15a2167afefd9ac39cc478e2e707a223faf (patch)
tree250169dc67983305c0e2c9b32cc4e210bc1a1d71 /src/game-server/commandhandler.cpp
parentec95564944562bbd020f005d155f6ce3943eea02 (diff)
downloadmanaserv-b0ecb15a2167afefd9ac39cc478e2e707a223faf.tar.gz
manaserv-b0ecb15a2167afefd9ac39cc478e2e707a223faf.tar.bz2
manaserv-b0ecb15a2167afefd9ac39cc478e2e707a223faf.tar.xz
manaserv-b0ecb15a2167afefd9ac39cc478e2e707a223faf.zip
Fix many compiler warnings.
Reviewed-by: Bertram
Diffstat (limited to 'src/game-server/commandhandler.cpp')
-rw-r--r--src/game-server/commandhandler.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/game-server/commandhandler.cpp b/src/game-server/commandhandler.cpp
index d9445334..5bd6a04f 100644
--- a/src/game-server/commandhandler.cpp
+++ b/src/game-server/commandhandler.cpp
@@ -733,7 +733,7 @@ static void handleRecall(Character *player, std::string &args)
GameState::warp(other, map, pos.x, pos.y);
}
-static void handleReload(Character *player, std::string &args)
+static void handleReload(Character *, std::string &)
{
// reload the items and monsters
itemManager->reload();
@@ -832,7 +832,9 @@ static void handleGivePermission(Character *player, std::string &args)
if (permission & other->getAccountLevel())
{
say(player->getName()+" already has the permission "+strPermission, player);
- } else {
+ }
+ else
+ {
permission += other->getAccountLevel();
// change the player's account level
other->setAccountLevel(permission);
@@ -992,7 +994,7 @@ static void handleAnnounce(Character *player, std::string &msg)
GameState::sayToAll(msg);
}
-static void handleWhere(Character *player, std::string &args)
+static void handleWhere(Character *player, std::string &)
{
std::stringstream str;
str << "Your current location is map "
@@ -1005,7 +1007,7 @@ static void handleWhere(Character *player, std::string &args)
say (str.str(), player);
}
-static void handleRights(Character *player, std::string &args)
+static void handleRights(Character *player, std::string &)
{
std::list<std::string>classes;
classes = PermissionManager::getClassList(player);