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

Method ValidateColour

src/story.cpp:183–186  ·  view source on GitHub ↗

Verify that the data stored a valid Colour value */

Source from the content-addressed store, hash-verified

181
182/** Verify that the data stored a valid Colour value */
183bool StoryPageButtonData::ValidateColour() const
184{
185 return GB(this->referenced_id, 0, 8) < COLOUR_END;
186}
187
188bool StoryPageButtonData::ValidateFlags() const
189{

Calls 1

GBFunction · 0.85

Tested by

no test coverage detected