From efc3832f521528ede7dc930dd02b22802cf1ebd4 Mon Sep 17 00:00:00 2001 From: Noudess Date: Fri, 19 Jun 2020 07:43:06 -0400 Subject: [PATCH] Fix some formatting and change visual label for stacked node names. --- zone/command.cpp | 4 +++- zone/npc.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/zone/command.cpp b/zone/command.cpp index eef536932..43214430e 100755 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -2477,7 +2477,9 @@ void command_grid(Client *c, const Seperator *sep) glm::vec4 node_position = glm::vec4(atof(row[0]), atof(row[1]), atof(row[2]), atof(row[3])); std::vector node_loc { - node_position.x, node_position.y, node_position.z + node_position.x, + node_position.y, + node_position.z }; // If we already have a node at this location, set the z offset diff --git a/zone/npc.cpp b/zone/npc.cpp index 7f6754f73..15b0ce765 100644 --- a/zone/npc.cpp +++ b/zone/npc.cpp @@ -1074,11 +1074,11 @@ void NPC::SpawnGridNodeNPC(const glm::vec4 &position, int32 grid_number, int32 z memset(npc_type, 0, sizeof(NPCType)); std::string str_zoffset = numberToWords(zoffset); - std::string str_number= numberToWords(grid_number); + std::string str_number = numberToWords(grid_number); strcpy(npc_type->name, str_number.c_str()); if (zoffset != 0) { - strcat(npc_type->name, "(Zoffset)"); + strcat(npc_type->name, "(Stacked)"); } npc_type->current_hp = 4000000;