From 67ad7c7e6438fc806a58e95071b78c7ab92328a9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 13 Nov 2010 23:23:32 +0000 Subject: apply ship templates to stations --- src/game/base/game.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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(); } -- cgit v1.2.3