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.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