From 29c26acef59a342179fd21405867ff6fee58f58e Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 5 Nov 2013 19:05:41 +0000 Subject: Set infoname on jumppoints and jumpgates. --- src/game/base/jumppoint.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/game/base/jumppoint.cc b/src/game/base/jumppoint.cc index d173aee..7f23fd9 100644 --- a/src/game/base/jumppoint.cc +++ b/src/game/base/jumppoint.cc @@ -100,10 +100,11 @@ void JumpPoint::validate() entity_info = new core::Info(core::Entity::infotype(), labelstr.c_str()); set_info(entity_info); } + entity_info->set_name("Jumppoint"); + entity_info->clear_text(); entity_info->add_text("Jumppoint to the " + target()->zone()->name()); - - + con_debug << " " << label() << " jumppoint to " << target()->zone()->label() << ":" << target()->label() << std::endl; } @@ -146,8 +147,8 @@ void JumpGate::validate() set_name(name); core::Info *entity_info = core::Info::find(info()); + entity_info->set_name("Jumpgate"); entity_info->clear_text(); - // FIXME if 'system' was erased from the name, 'the' should not appear in the info text // e.g. Jumpgate to Kor Telos entity_info->add_text("Jumpgate to the " + target()->zone()->name()); -- cgit v1.2.3