From a7808ebdf39b549f4e0df38e6d897caa2dbb24bd Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 29 Nov 2010 13:35:57 +0000 Subject: Corrected message in the 'give cargo' command. --- src/game/base/game.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/game/base') diff --git a/src/game/base/game.cc b/src/game/base/game.cc index f50d7bc..efff342 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -346,7 +346,7 @@ void Game::func_give(core::Player *player, const std::string &args) player->set_view(view); player->sound("game/buy-ship"); - + } else if (str.compare("credits") == 0) { long credits; @@ -367,7 +367,8 @@ void Game::func_give(core::Player *player, const std::string &args) std::string labelstr; if (!player->control()) { - player->send("^WNeed a ship to load cargo!"); + player->send("^WYou need to join the game first!"); + return; } Cargo *cargo = 0; @@ -376,7 +377,7 @@ void Game::func_give(core::Player *player, const std::string &args) } else { cargo = Cargo::find(labelstr); } - + if (!cargo) { // enable rcon buffering sys::ConsoleInterface::instance()->set_rcon(true); -- cgit v1.2.3