fix blink making you fall under ground when blinking into water (needs correct liquid level calculations)

This commit is contained in:
Kandera
2012-02-17 14:25:08 -05:00
parent 1b506c18ee
commit e277588689

View File

@@ -1555,7 +1555,7 @@ float Map::GetWaterOrGroundLevel(float x, float y, float z, float* ground /*= NU
LiquidData liquid_status;
ZLiquidStatus res = getLiquidStatus(x, y, ground_z, MAP_ALL_LIQUIDS, &liquid_status);
return res ? ( swim ? liquid_status.level - 2.0f : liquid_status.level) : ground_z;
return res ? liquid_status.level : ground_z;
}
return VMAP_INVALID_HEIGHT_VALUE;