From 6cd1a38f1d3a0a45846d63a75475400372af1277 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 8 Nov 2008 16:51:28 +0000 Subject: moved message functions into Player class --- src/game/example/example.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game/example') 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."); -- cgit v1.2.3