| 211 | } |
| 212 | |
| 213 | bool TestLastFrame(const ItemInfo& item, int animNumber) |
| 214 | { |
| 215 | if (animNumber == NO_VALUE) |
| 216 | animNumber = item.Animation.AnimNumber; |
| 217 | |
| 218 | // Animation number mismatch; return early. |
| 219 | if (item.Animation.AnimNumber != animNumber) |
| 220 | return false; |
| 221 | |
| 222 | // FAILSAFE: Frames beyond real end frame also count. |
| 223 | const auto& anim = GetAnimData(item.Animation.AnimObjectID, animNumber); |
| 224 | return (item.Animation.FrameNumber >= anim.EndFrameNumber); |
| 225 | } |
| 226 | |
| 227 | bool TestAnimFrameRange(const ItemInfo& item, int lowFrameNumber, int highFrameNumber) |
| 228 | { |
no outgoing calls
no test coverage detected