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

Function ShowConstructionRights

src/openrct2/interface/Viewport.cpp:1204–1219  ·  view source on GitHub ↗

* * rct2: 0x00664EDD */

Source from the content-addressed store, hash-verified

1202 * rct2: 0x00664EDD
1203 */
1204 void ShowConstructionRights()
1205 {
1206 if (gShowConstructionRightsRefCount == 0)
1207 {
1208 WindowBase* mainWindow = WindowGetMain();
1209 if (mainWindow != nullptr)
1210 {
1211 if (!(mainWindow->viewport->flags & VIEWPORT_FLAG_CONSTRUCTION_RIGHTS))
1212 {
1213 mainWindow->viewport->flags |= VIEWPORT_FLAG_CONSTRUCTION_RIGHTS;
1214 mainWindow->invalidate();
1215 }
1216 }
1217 }
1218 gShowConstructionRightsRefCount++;
1219 }
1220
1221 /**
1222 *

Callers 2

onMouseUpMethod · 0.85
SwitchToModeMethod · 0.85

Calls 2

WindowGetMainFunction · 0.85
invalidateMethod · 0.45

Tested by

no test coverage detected