MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / ValidateCursor

Method ValidateCursor

src/story.cpp:199–202  ·  view source on GitHub ↗

Verify that the data stores a valid StoryPageButtonCursor value */

Source from the content-addressed store, hash-verified

197
198/** Verify that the data stores a valid StoryPageButtonCursor value */
199bool StoryPageButtonData::ValidateCursor() const
200{
201 return GB(this->referenced_id, 8, 8) < SPBC_END;
202}
203
204/** Verity that the data stored a valid VehicleType value */
205bool StoryPageButtonData::ValidateVehicleType() const

Callers 3

Calls 1

GBFunction · 0.85

Tested by

no test coverage detected