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.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc
index d97d23b..37a6341 100644
--- a/src/game/base/game.cc
+++ b/src/game/base/game.cc
@@ -1312,6 +1312,13 @@ bool Game::load_zone(core::Zone *zone)
} else {
entitytemplate->apply(station);
}
+ } else if (zoneini.got_key_label("ship", strval)) {
+ ShipModel *shipmodel = ShipModel::find(strval);
+ if (!shipmodel) {
+ zoneini.unknown_error("unkown ship type '" + strval + "'");
+ } else {
+ shipmodel->apply(station);
+ }
} else {
zoneini.unkown_key();
}