summaryrefslogtreecommitdiffstats
path: root/src/game-server/commandhandler.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-03-19 22:09:25 +0100
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-03-25 20:32:36 +0100
commit7aeb3b4a6c34a8f679719c207e51394d7e48828b (patch)
treec92af607288f041944f7a876e3a9478b35ba6499 /src/game-server/commandhandler.cpp
parent7aee56f062989c8901322a09b2da40bb028eb222 (diff)
downloadmanaserv-7aeb3b4a6c34a8f679719c207e51394d7e48828b.tar.gz
manaserv-7aeb3b4a6c34a8f679719c207e51394d7e48828b.tar.xz
manaserv-7aeb3b4a6c34a8f679719c207e51394d7e48828b.zip
Changed Effect to a component of Actor
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/game-server/commandhandler.cpp')
-rw-r--r--src/game-server/commandhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game-server/commandhandler.cpp b/src/game-server/commandhandler.cpp
index ad6a1bc..001f65f 100644
--- a/src/game-server/commandhandler.cpp
+++ b/src/game-server/commandhandler.cpp
@@ -171,7 +171,7 @@ static CmdRef const cmdRef[] =
};
-static void say(const std::string message, Character *player)
+static void say(const std::string &message, Character *player)
{
GameState::sayTo(player, NULL, message);
}
@@ -1500,7 +1500,7 @@ static void handleEffect(Character *player, std::string &args)
if (arguments.size() == 1)
{
int id = utils::stringToInt(arguments[0]);
- Effects::show(id, player->getMap(), player);
+ Effects::show(id, player);
}
else if (arguments.size() == 2)
{
@@ -1511,7 +1511,7 @@ static void handleEffect(Character *player, std::string &args)
say("Invalid target player.", player);
return;
}
- Effects::show(id, p->getMap(), p);
+ Effects::show(id, p);
}
else if (arguments.size() == 3)
{