mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 08:21:28 +00:00
Fix some formatting and change visual label for stacked node names.
This commit is contained in:
parent
4a23086183
commit
efc3832f52
@ -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]));
|
glm::vec4 node_position = glm::vec4(atof(row[0]), atof(row[1]), atof(row[2]), atof(row[3]));
|
||||||
|
|
||||||
std::vector<float> node_loc {
|
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
|
// If we already have a node at this location, set the z offset
|
||||||
|
|||||||
@ -1074,11 +1074,11 @@ void NPC::SpawnGridNodeNPC(const glm::vec4 &position, int32 grid_number, int32 z
|
|||||||
memset(npc_type, 0, sizeof(NPCType));
|
memset(npc_type, 0, sizeof(NPCType));
|
||||||
|
|
||||||
std::string str_zoffset = numberToWords(zoffset);
|
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());
|
strcpy(npc_type->name, str_number.c_str());
|
||||||
if (zoffset != 0) {
|
if (zoffset != 0) {
|
||||||
strcat(npc_type->name, "(Zoffset)");
|
strcat(npc_type->name, "(Stacked)");
|
||||||
}
|
}
|
||||||
|
|
||||||
npc_type->current_hp = 4000000;
|
npc_type->current_hp = 4000000;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user