From 4cc24dea75e611d96810e2107c2bf95d9a197993 Mon Sep 17 00:00:00 2001 From: Paul Coene Date: Wed, 12 May 2021 20:17:55 -0400 Subject: [PATCH] [GM Command] #list npcs Goto option now goes to higher Z if selected NPC is a boat. (#1349) * #list npcs Goto option now goes to higher Z if npc selected is a boat. Makes using #list npcs and using the goto button more useful when NPC is a boat, as normal Z will put you in the water. * Use ?: instead of bool multiply * Update command.cpp --- zone/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/command.cpp b/zone/command.cpp index 4991d25f6..20cb4856f 100755 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -1610,7 +1610,7 @@ void command_list(Client *c, const Seperator *sep) "#goto %.0f %0.f %.0f", entity->GetX(), entity->GetY(), - entity->GetZ()); + entity->GetZ() + (entity->IsBoat() ? 50 : 0)); c->Message( 0,