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>2013-11-05 19:05:41 +0000
committerStijn Buys <ingar@osirion.org>2013-11-05 19:05:41 +0000
commit29c26acef59a342179fd21405867ff6fee58f58e (patch)
tree1e2f3848bdca25f287315a3a4ea1445d6e1a9594
parenteb7873a10d1827df6317065be71d18de69047fdd (diff)
Set infoname on jumppoints and jumpgates.
-rw-r--r--src/game/base/jumppoint.cc7
1 files 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());