From 33fabb093ff391dda41b04f6a6634c940e134e9c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 7 Aug 2011 12:14:12 +0000 Subject: Add zone label to the entity info label. --- src/game/base/jumppoint.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/base/jumppoint.cc b/src/game/base/jumppoint.cc index 6542b84..91350c7 100644 --- a/src/game/base/jumppoint.cc +++ b/src/game/base/jumppoint.cc @@ -91,7 +91,10 @@ void JumpPoint::validate() // info is const, core::Info::find returns a non-const pointer core::Info *entity_info = core::Info::find(info()); if (!entity_info) { - entity_info = new core::Info(core::Entity::infotype(), label().c_str()); + std::string labelstr(zone()->label()); + labelstr += ':'; + labelstr.append(label()); + entity_info = new core::Info(core::Entity::infotype(), labelstr.c_str()); set_info(entity_info); } entity_info->clear_text(); -- cgit v1.2.3