From 1dae56d7f36427042bfa6ff69ed394a715191bad Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Oct 2012 20:53:27 +0000 Subject: Use spacemine template model for mines if the weapon model isn't defined. --- src/game/base/spacemine.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/base/spacemine.cc b/src/game/base/spacemine.cc index af64514..dc5f6c5 100644 --- a/src/game/base/spacemine.cc +++ b/src/game/base/spacemine.cc @@ -33,7 +33,9 @@ SpaceMine::SpaceMine(const core::Info *info) : EntityDynamic() // item type model overrides template if (info) { set_info(info); - set_modelname(info->modelname()); + if (info->modelname().size()) { + set_modelname(info->modelname()); + } set_name(info->name()); set_label(info->label()); } -- cgit v1.2.3