Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/base/game.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc
index 23ea90c..fda1d70 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -687,9 +687,7 @@ void Game::func_wingmen(core::Player *player, const std::string &args)
return;
}
- if (player->control()->moduletype() != ship_enttype)
- return;
-
+ assert(player->control()->moduletype() == ship_enttype);
Ship * ship = static_cast<Ship *>(player->control());
std::istringstream is(args);
@@ -699,7 +697,9 @@ void Game::func_wingmen(core::Player *player, const std::string &args)
aux::to_label(str);
if (str.compare("add") == 0) {
- NPC::add_wingman(ship);
+ if (NPC::add_wingman(ship)) {
+ player->send("Wingman standing by!");
+ }
}
}