Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/game.cc')
-rw-r--r--src/game/base/game.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc
index c4e354c..f542676 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -23,6 +23,7 @@
#include "base/jumppoint.h"
#include "base/planet.h"
#include "base/savegame.h"
+#include "base/spacemine.h"
#include "base/station.h"
#include "base/racetrack.h"
#include "base/ship.h"
@@ -667,6 +668,13 @@ void Game::func_eject(core::Player *player, const std::string &args)
aux::to_label(typestr);
}
+ if (g_devel->value()) {
+ if (typestr.compare("mine") == 0) {
+ SpaceMine::eject(player->control());
+ return;
+ }
+ }
+
if (!(is >> labelstr)) {
player->send("Usage: eject [string] [string] [int] eject an item: specify type, label and amount");
return;
@@ -684,7 +692,7 @@ void Game::func_eject(core::Player *player, const std::string &args)
cargo->eject(player->control(), amount);
} else {
player->send("Unkown cargo type '" + labelstr + "'");
- }
+ }
} else {
player->send("Unkown item type '" + typestr + "'");
}