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

Method SetHasGreenLight

src/openrct2/world/tile_element/TrackElement.cpp:285–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283 }
284
285 void TrackElement::SetHasGreenLight(bool on)
286 {
287 Flags2 &= ~TRACK_ELEMENT_FLAGS2_HAS_GREEN_LIGHT;
288 if (on)
289 {
290 Flags2 |= TRACK_ELEMENT_FLAGS2_HAS_GREEN_LIGHT;
291 }
292 }
293
294 bool TrackElement::IsHighlighted() const
295 {

Callers 3

ImportTileElementMethod · 0.80
ImportTileElementMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected