From b460b3193e54b7364bb75ff26ce6f999887e454b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 12 Nov 2010 16:24:17 +0000 Subject: 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() --- src/game/base/template.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/game/base/template.cc') 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(), -- cgit v1.2.3