diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-29 13:35:57 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-29 13:35:57 +0000 |
commit | a7808ebdf39b549f4e0df38e6d897caa2dbb24bd (patch) | |
tree | 794cf22176b536dd5b77910ba22ffbb4107c532a /src/game/base | |
parent | 4bae1c80e6a73173f5ec360dc05537ced3b68d32 (diff) |
Corrected message in the 'give cargo' command.
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/game.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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); |