Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-12-20 14:53:07 +0000
committerStijn Buys <ingar@osirion.org>2008-12-20 14:53:07 +0000
commitbf5e410cb8c041aa6e55fe9e9c38b79d30ee14ec (patch)
treeef8d5b0de60072ab7fd954eaa4d03bbbfeb40b92 /src/game/base/shipdealer.cc
parent62e480c2d887aae67add7ee7aed68463be897811 (diff)
fixed zone list for the jump command in g_devel mode
Diffstat (limited to 'src/game/base/shipdealer.cc')
-rw-r--r--src/game/base/shipdealer.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/game/base/shipdealer.cc b/src/game/base/shipdealer.cc
index 1a827ec..fb6415c 100644
--- a/src/game/base/shipdealer.cc
+++ b/src/game/base/shipdealer.cc
@@ -86,13 +86,19 @@ void ShipDealer::func_buy(core::Player *player, const std::string &args)
if (helpstr.size())
helpstr.append("^N|^B");
- helpstr.append((*smit).second->label());
+ helpstr.append((*smit).first);
}
}
if (!shipmodel) {
- player->send("Usage: buy [^B" + helpstr + "^N]");
- return;
+ if (!Game::g_devel->value()) {
+ player->send("Cheats disabled");
+ return;
+
+ } else {
+ player->send("Usage: buy [^B" + helpstr + "^N]");
+ return;
+ }
}
/// find the ship dealer we're buying the ship from