Fix #8804: Raising water shows money effect at the bottom rather than new height

This commit is contained in:
duncanspumpkin 2019-03-03 11:17:21 +01:00 committed by Aaron van Geffen
parent 01c7429a5c
commit e4ab16acc1
1 changed files with 1 additions and 1 deletions

View File

@ -1429,7 +1429,7 @@ money32 raise_water(int16_t x0, int16_t y0, int16_t x1, int16_t y1, uint8_t flag
int16_t water_height_z = z >> 16;
int16_t base_height_z = z;
z = water_height_z;
if (z != 0)
if (z == 0)
z = base_height_z;
LocationXYZ16 coord;