Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/shipmodel.cc')
-rw-r--r--src/game/base/shipmodel.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/base/shipmodel.cc b/src/game/base/shipmodel.cc
index 9489c91..f504107 100644
--- a/src/game/base/shipmodel.cc
+++ b/src/game/base/shipmodel.cc
@@ -116,6 +116,9 @@ bool ShipModel::init()
} else if (inifile.got_key_float("armor", f)) {
shipmodel->set_maxarmor(f);
continue;
+ } else if (inifile.got_key_float("shield", f)) {
+ shipmodel->set_maxshield(f);
+ continue;
} else if (inifile.got_key_float("radius", f)) {
shipmodel->set_radius(f);
continue;
@@ -433,6 +436,7 @@ void ShipModel::apply(Ship *ship) const
ship->set_roll_force(roll_force());
ship->set_jumpdrive(jumpdrive());
ship->set_maxarmor(maxarmor());
+ ship->set_maxshield(maxshield());
}
}