aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level1.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-10 15:33:54 -0600
committermegamage <none@none>2009-03-10 15:33:54 -0600
commitdc4a456416870697d1bf727ab5c7b9f6cf3537f0 (patch)
treef71b84de473b1cf364899169c6c4cfa2dcae9a00 /src/game/Level1.cpp
parent099d302e690cf767c9247f7a910d86286af4745f (diff)
[7439] Fix wrong liquid level in some places. Need reectract maps. Author: DiSlord
Remove some log on extract maps. Add liquid status log to .gps command --HG-- branch : trunk
Diffstat (limited to 'src/game/Level1.cpp')
-rw-r--r--src/game/Level1.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp
index 78e32e62574..346547e0c4b 100644
--- a/src/game/Level1.cpp
+++ b/src/game/Level1.cpp
@@ -733,6 +733,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;
}