diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-13 23:23:32 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-13 23:23:32 +0000 |
commit | 67ad7c7e6438fc806a58e95071b78c7ab92328a9 (patch) | |
tree | 31b5368007bef314424287529dd7c57d31118cce /src/game/base | |
parent | ce6459b4588c2ac61f0cf57045324a8e27e34f41 (diff) |
apply ship templates to stations
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/game.cc | 7 |
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(); } |