Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/base/template.cc')
-rw-r--r--src/game/base/template.cc13
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;