Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-11-29 13:35:57 +0000
committerStijn Buys <ingar@osirion.org>2010-11-29 13:35:57 +0000
commita7808ebdf39b549f4e0df38e6d897caa2dbb24bd (patch)
tree794cf22176b536dd5b77910ba22ffbb4107c532a /src/game
parent4bae1c80e6a73173f5ec360dc05537ced3b68d32 (diff)
Corrected message in the 'give cargo' command.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/base/game.cc7
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);