summaryrefslogtreecommitdiff
path: root/src/gamehandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamehandler.cpp')
-rw-r--r--src/gamehandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gamehandler.cpp b/src/gamehandler.cpp
index af08db46..a133e5fa 100644
--- a/src/gamehandler.cpp
+++ b/src/gamehandler.cpp
@@ -254,8 +254,13 @@ void GameHandler::sayAround(GameClient &computer, std::string const &text)
}
}
-void GameHandler::sendTo(PlayerPtr beingPtr, MessageOut &msg)
+void
+GameHandler::sendTo(PlayerPtr beingPtr, MessageOut &msg)
{
+ /* TODO: This implementation is very inefficient. An alternative would be
+ * store the NetComputer reference with the player class, so that it can
+ * be directly accessed.
+ */
for (NetComputers::iterator i = clients.begin(); i != clients.end(); ++i)
{
PlayerPtr clientChar = static_cast<GameClient *>(*i)->getCharacter();