[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
This commit is contained in:
Paul Coene 2021-05-12 20:17:55 -04:00 committed by GitHub
parent 1f896d05ed
commit 4cc24dea75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,