Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-08 16:51:28 +0000
committerStijn Buys <ingar@osirion.org>2008-11-08 16:51:28 +0000
commit6cd1a38f1d3a0a45846d63a75475400372af1277 (patch)
tree35bc79e34fe727fc387103a183f80b203c6dfa12 /src/game/example
parent731dfb8f3ca9c34e4160021cb221c3056c00dbf9 (diff)
moved message functions into Player class
Diffstat (limited to 'src/game/example')
-rw-r--r--src/game/example/example.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/example/example.cc b/src/game/example/example.cc
index 4eeea00..9c3d55a 100644
--- a/src/game/example/example.cc
+++ b/src/game/example/example.cc
@@ -96,7 +96,7 @@ void Example::player_connect(core::Player *player)
player->set_dirty();
// send a message to the player
- core::server()->send(player, "Welcome to " + name());
+ player->send("Welcome to " + name());
// broadcast a message to all players
core::server()->broadcast("^B" + player->name() + " ^Bentered.");