From 667a4741169bb0c2a6273434efb0ed37460b2cf0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 22 Nov 2014 21:55:57 +0000 Subject: Send a message when adding a wingman. --- src/game/base/game.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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(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!"); + } } } -- cgit v1.2.3