Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-11-13 23:23:32 +0000
committerStijn Buys <ingar@osirion.org>2010-11-13 23:23:32 +0000
commit67ad7c7e6438fc806a58e95071b78c7ab92328a9 (patch)
tree31b5368007bef314424287529dd7c57d31118cce /src/game
parentce6459b4588c2ac61f0cf57045324a8e27e34f41 (diff)
apply ship templates to stations
Diffstat (limited to 'src/game')
-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();
}