diff options
Diffstat (limited to 'src/game/base/template.cc')
-rw-r--r-- | src/game/base/template.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game/base/template.cc b/src/game/base/template.cc index 7327c31..04c8058 100644 --- a/src/game/base/template.cc +++ b/src/game/base/template.cc @@ -9,6 +9,7 @@ #include "base/template.h" #include "base/cargopod.h" #include "base/navpoint.h" +#include "base/jumppoint.h" namespace game { @@ -139,6 +140,18 @@ bool Template::init() if (!entitytemplate) { con_warn << "Template 'navpoint' not found!" << std::endl; } + + entitytemplate = Template::find(std::string("jumppoint")); + JumpPoint::set_template(entitytemplate); + if (!entitytemplate) { + con_warn << "Template 'jumppoint' not found!" << std::endl; + } + + entitytemplate = Template::find(std::string("jumpgate")); + JumpGate::set_template(entitytemplate); + if (!entitytemplate) { + con_warn << "Template 'jumpgate' not found!" << std::endl; + } con_debug << " " << inifile.name() << " " << count << " entity templates" << std::endl; |