mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2024-08-29 21:46:05 +02:00
Limit what is considered a valid tile (#3631)
`smooth_land_tile` already calls to `map_is_location_valid`, but the latter allows for elements that are clearly outside the range. Fixes #3549
This commit is contained in:
parent
193ae36cb4
commit
d4394c73d3
1 changed files with 1 additions and 1 deletions
|
@ -655,7 +655,7 @@ int map_height_from_slope(int x, int y, int slope)
|
||||||
|
|
||||||
bool map_is_location_valid(int x, int y)
|
bool map_is_location_valid(int x, int y)
|
||||||
{
|
{
|
||||||
if (x <= (256 * 32) && x >= 0 && y <= (256 * 32) && y >= 0) {
|
if (x < (256 * 32) && x >= 0 && y < (256 * 32) && y >= 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue