Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-10-28 20:53:27 +0000
committerStijn Buys <ingar@osirion.org>2012-10-28 20:53:27 +0000
commit1dae56d7f36427042bfa6ff69ed394a715191bad (patch)
treed64921c273233701dddaa8cc42ddefd96befe712
parentb5d81a70cfd675bd57c5b9f2b7c181fa17b44df0 (diff)
Use spacemine template model for mines if the weapon model isn't defined.
-rw-r--r--src/game/base/spacemine.cc4
1 files changed, 3 insertions, 1 deletions
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());
}