Fix #8064: Check clearance height before alignment on correct z. (#8135)

This commit is contained in:
ζeh Matt 2018-10-22 18:51:36 +02:00 committed by Michael Steenbeek
parent a8e46f5eec
commit 45381b0997
1 changed files with 2 additions and 2 deletions

View File

@ -1173,7 +1173,7 @@ static money32 track_place(
if (trackFlags[type] & TRACK_ELEM_FLAG_STARTS_AT_HALF_HEIGHT)
{
if ((z & 0x0F) != 8)
if ((originZ & 0x0F) != 8)
{
gGameCommandErrorText = STR_CONSTRUCTION_ERR_UNKNOWN;
return MONEY32_UNDEFINED;
@ -1181,7 +1181,7 @@ static money32 track_place(
}
else
{
if ((z & 0x0F) != 0)
if ((originZ & 0x0F) != 0)
{
gGameCommandErrorText = STR_CONSTRUCTION_ERR_UNKNOWN;
return MONEY32_UNDEFINED;