* * rct2: 0x00664EDD */
| 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 | * |
no test coverage detected