Scripts/Commands: Include map min height in ".gps" command

(cherry picked from commit 9994459bd1)
This commit is contained in:
jackpoz
2020-12-27 17:14:22 +01:00
committed by Shauren
parent c6df84da70
commit 13bf0e71b9
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
--
UPDATE `trinity_string` SET `content_default` = 'grid[%u,%u]cell[%u,%u] InstanceID: %u\n ZoneX: %f ZoneY: %f\nGroundZ: %f FloorZ: %f MinHeight: %f Have height data (Map: %u VMap: %u MMap: %u)' WHERE `entry` = '178';

View File

@@ -289,7 +289,7 @@ public:
transport->GetEntry(), transport->GetName().c_str());
handler->PSendSysMessage(LANG_GRID_POSITION,
cell.GridX(), cell.GridY(), cell.CellX(), cell.CellY(), object->GetInstanceId(),
zoneX, zoneY, groundZ, floorZ, haveMap, haveVMap, haveMMap);
zoneX, zoneY, groundZ, floorZ, map->GetMinHeight(object->GetPhaseShift(), object->GetPositionX(), object->GetPositionY()), haveMap, haveVMap, haveMMap);
LiquidData liquidStatus;
ZLiquidStatus status = map->GetLiquidStatus(object->GetPhaseShift(), object->GetPositionX(), object->GetPositionY(), object->GetPositionZ(), map_liquidHeaderTypeFlags::AllLiquids, &liquidStatus);