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>2010-11-12 16:24:17 +0000
committerStijn Buys <ingar@osirion.org>2010-11-12 16:24:17 +0000
commitb460b3193e54b7364bb75ff26ce6f999887e454b (patch)
treed35e4972fd3ee54b9922908e3791a53bae96af14 /src/game/base/template.cc
parentc0c2a0ccc335b00983bf69b99b7a44505ed24b47 (diff)
moved global entity info type to core::Entity::infotype(),
automatic generation of jumppoint and jumpgate names and descriptions, prepared game code for the seperation of Entity::radius() and Model::radius()
Diffstat (limited to 'src/game/base/template.cc')
-rw-r--r--src/game/base/template.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/base/template.cc b/src/game/base/template.cc
index 1cdac1a..7861538 100644
--- a/src/game/base/template.cc
+++ b/src/game/base/template.cc
@@ -116,7 +116,7 @@ bool Template::init()
entitytemplate = Template::find(std::string("navpoint"));
NavPoint::set_template(entitytemplate);
- if (entitytemplate) {
+ if (!entitytemplate) {
con_warn << "Template 'navpoint' not found!" << std::endl;
}
@@ -128,6 +128,11 @@ bool Template::init()
return true;
}
+void Template::done()
+{
+ core::Func::remove("list_template");
+}
+
Template::Template() :
core::Info(template_infotype),
template_color(),