From 029028b2e80d43497f4dd19c5aff17903b0a504f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 16 Dec 2014 23:05:38 +0000 Subject: Fixed a small bug where the repair messagebox would appear if you were at full armor strength. --- src/game/base/game.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/game') diff --git a/src/game/base/game.cc b/src/game/base/game.cc index 575ba3b..62ceef8 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -1200,6 +1200,7 @@ void Game::func_repair(core::Player *player, const std::string &args) // check if repair is required if (ship->armor() >= ship->maxarmor()) { player->messagebox("Ship armor is already at full strength."); + return; } const float base_price = roundf(10.0f + player->reputation(dock->faction()) /-20.0f); // base price per armor unit -- cgit v1.2.3