1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Remove 'static const' that slipped in

This commit is contained in:
Broxzier
2017-07-01 11:45:43 +02:00
parent 9e204c11a9
commit 29fb31c69c

View File

@@ -237,8 +237,8 @@ void viewport_adjust_for_map_height(sint16* x, sint16* y, sint16 *z)
// of the map. This can happen when the height is larger than the map size.
sint16 max = gMapSizeMinus2;
if (pos.x > max && pos.y > max) {
static const sint32 x_corr[] = { -1, 1, 1, -1 };
static const sint32 y_corr[] = { -1, -1, 1, 1 };
sint32 x_corr[] = { -1, 1, 1, -1 };
sint32 y_corr[] = { -1, -1, 1, 1 };
pos.x += x_corr[rotation] * height;
pos.y += y_corr[rotation] * height;
}