diff options
author | Stijn Buys <ingar@osirion.org> | 2014-12-16 23:05:38 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2014-12-16 23:05:38 +0000 |
commit | 029028b2e80d43497f4dd19c5aff17903b0a504f (patch) | |
tree | ff3511223d2258eac9a535419e1e30dc9474518e /src/game/base | |
parent | bebb67e03d378a084367cc05c3d9bbb76f1d8e73 (diff) |
Fixed a small bug where the repair messagebox would appear if you were at full armor strength.
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/game.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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 |