mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(svn r23236) -Fix (r23141): Construction of objects was always rejected.
This commit is contained in:
parent
eca99e92d8
commit
cc82b15f2a
@ -247,7 +247,8 @@ CommandCost CmdBuildObject(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
|||||||
} else {
|
} else {
|
||||||
/* The meaning of bit 10 is inverted for a grf version < 8. */
|
/* The meaning of bit 10 is inverted for a grf version < 8. */
|
||||||
if (spec->grf_prop.grffile->grf_version < 8) ToggleBit(callback, 10);
|
if (spec->grf_prop.grffile->grf_version < 8) ToggleBit(callback, 10);
|
||||||
return GetErrorMessageFromLocationCallbackResult(callback, spec->grf_prop.grffile->grfid, STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);
|
CommandCost ret = GetErrorMessageFromLocationCallbackResult(callback, spec->grf_prop.grffile->grfid, STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);
|
||||||
|
if (ret.Failed()) return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user