Fix some formatting and change visual label for stacked node names.

This commit is contained in:
Noudess 2020-06-19 07:43:06 -04:00
parent 4a23086183
commit efc3832f52
2 changed files with 5 additions and 3 deletions

View File

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

View File

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