MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ShowLandRights

Function ShowLandRights

src/openrct2/interface/Viewport.cpp:1160–1175  ·  view source on GitHub ↗

* * rct2: 0x00664E8E */

Source from the content-addressed store, hash-verified

1158 * rct2: 0x00664E8E
1159 */
1160 void ShowLandRights()
1161 {
1162 if (gShowLandRightsRefCount == 0)
1163 {
1164 WindowBase* mainWindow = WindowGetMain();
1165 if (mainWindow != nullptr)
1166 {
1167 if (!(mainWindow->viewport->flags & VIEWPORT_FLAG_LAND_OWNERSHIP))
1168 {
1169 mainWindow->viewport->flags |= VIEWPORT_FLAG_LAND_OWNERSHIP;
1170 mainWindow->invalidate();
1171 }
1172 }
1173 }
1174 gShowLandRightsRefCount++;
1175 }
1176
1177 /**
1178 *

Callers 2

onMouseUpMethod · 0.85
SwitchToModeMethod · 0.85

Calls 2

WindowGetMainFunction · 0.85
invalidateMethod · 0.45

Tested by

no test coverage detected