Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);