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

Method Set

src/newgrf_animation_base.h:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21struct TileAnimationFrameAnimationHelper {
22 static uint8_t Get(Tobj *, TileIndex tile) { return GetAnimationFrame(tile); }
23 static bool Set(Tobj *, TileIndex tile, uint8_t frame)
24 {
25 uint8_t prev_frame = GetAnimationFrame(tile);
26 if (prev_frame == frame) return false;
27
28 SetAnimationFrame(tile, frame);
29 return true;
30 }
31};
32
33/**

Callers

nothing calls this directly

Calls 2

GetAnimationFrameFunction · 0.85
SetAnimationFrameFunction · 0.85

Tested by

no test coverage detected