Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline int Interp_Interpolate(VarMapping_t *map, float currentTime)
- {
- int bNoMoreChanges = 1;
- if (currentTime < map->m_lastInterpolationTime)
- {
- for (int i = 0; i < map->m_nInterpolatedEntries; i++)
- {
- VarMapEntry_t *e = &map->m_Entries[i];
- e->m_bNeedsToInterpolate = true;
- }
- }
- map->m_lastInterpolationTime = currentTime;
- for (int i = 0; i < map->m_nInterpolatedEntries; i++)
- {
- VarMapEntry_t *e = &map->m_Entries[i];
- if (!e->m_bNeedsToInterpolate)
- continue;
- e->m_bNeedsToInterpolate = false;
- }
- return bNoMoreChanges;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement