1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-20 05:23:04 +01:00

Use macro for currentViewportFlags

This commit is contained in:
Marijn van der Werf
2016-06-19 16:16:12 +02:00
parent 1534c95f9c
commit d3d48bd9af

View File

@@ -1012,7 +1012,7 @@ void vehicle_visual_mini_golf_player(int x, int imageDirection, int y, int z, rc
return;
}
if (RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_VIEWPORT_FLAGS, uint16) & VIEWPORT_FLAG_INVISIBLE_PEEPS) {
if (gCurrentViewportFlags & VIEWPORT_FLAG_INVISIBLE_PEEPS) {
return;
}
@@ -1041,7 +1041,7 @@ void vehicle_visual_mini_golf_ball(int x, int imageDirection, int y, int z, rct_
return;
}
if (RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_VIEWPORT_FLAGS, uint16) & VIEWPORT_FLAG_INVISIBLE_PEEPS) {
if (gCurrentViewportFlags & VIEWPORT_FLAG_INVISIBLE_PEEPS) {
return;
}