mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[7439] Fix wrong liquid level in some places. Need reectract maps.
Remove some log on extract maps. Add liquid status log to .gps command Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
a2bb5aa9ed
commit
071a0317f0
11 changed files with 28 additions and 11 deletions
|
|
@ -331,6 +331,12 @@ bool ChatHandler::HandleGPSCommand(const char* args)
|
|||
cell.GridX(), cell.GridY(), cell.CellX(), cell.CellY(), obj->GetInstanceId(),
|
||||
zone_x, zone_y, ground_z, floor_z, have_map, have_vmap );
|
||||
|
||||
LiquidData liquid_status;
|
||||
ZLiquidStatus res = map->getLiquidStatus(obj->GetPositionX(), obj->GetPositionY(), obj->GetPositionZ(), MAP_ALL_LIQUIDS, &liquid_status);
|
||||
if (res)
|
||||
{
|
||||
PSendSysMessage(LANG_LIQUID_STATUS, liquid_status.level, liquid_status.depth_level, liquid_status.type, res);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue