mirror of
https://github.com/mangosfour/server.git
synced 2025-12-30 10:37:12 +00:00
[11306] Fix problem in WmoLiquid::GetLiquidHeight() properly instead of ignoring case.
Thanks Ambal for finding i though...
This commit is contained in:
parent
43db4eaaa2
commit
1a34a22cb9
2 changed files with 5 additions and 3 deletions
|
|
@ -150,10 +150,12 @@ namespace VMAP
|
|||
{
|
||||
float tx_f = (pos.x - iCorner.x)/LIQUID_TILE_SIZE;
|
||||
uint32 tx = uint32(tx_f);
|
||||
if (tx >= iTilesX) return false;
|
||||
if (tx_f < 0.0f || tx >= iTilesX)
|
||||
return false;
|
||||
float ty_f = (pos.y - iCorner.y)/LIQUID_TILE_SIZE;
|
||||
uint32 ty = uint32(ty_f);
|
||||
if (ty >= iTilesY) return false;
|
||||
if (ty_f < 0.0f || ty >= iTilesY)
|
||||
return false;
|
||||
|
||||
// check if tile shall be used for liquid level
|
||||
// checking for 0x08 *might* be enough, but disabled tiles always are 0x?F:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue