Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2014-12-16 23:05:38 +0000
committerStijn Buys <ingar@osirion.org>2014-12-16 23:05:38 +0000
commit029028b2e80d43497f4dd19c5aff17903b0a504f (patch)
treeff3511223d2258eac9a535419e1e30dc9474518e /src
parentbebb67e03d378a084367cc05c3d9bbb76f1d8e73 (diff)
Fixed a small bug where the repair messagebox would appear if you were at full armor strength.
Diffstat (limited to 'src')
-rw-r--r--src/game/base/game.cc1
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