mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 18:31:59 -05:00
fix #1370
This commit is contained in:
parent
f2388d9b54
commit
d1b806c20c
1 changed files with 2 additions and 2 deletions
|
@ -924,8 +924,8 @@ static int ride_ratings_get_scenery_score(rct_ride *ride)
|
||||||
|
|
||||||
// Count surrounding scenery items
|
// Count surrounding scenery items
|
||||||
numSceneryItems = 0;
|
numSceneryItems = 0;
|
||||||
for (yy = max(y - 5, 0); yy <= y + 5; yy++) {
|
for (yy = max(y - 5, 0); yy <= min(y + 5, 255); yy++) {
|
||||||
for (xx = max(x - 5, 0); xx <= x + 5; xx++) {
|
for (xx = max(x - 5, 0); xx <= min(x + 5, 255); xx++) {
|
||||||
// Count scenery items on this tile
|
// Count scenery items on this tile
|
||||||
mapElement = map_get_first_element_at(xx, yy);
|
mapElement = map_get_first_element_at(xx, yy);
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Reference in a new issue