Refactor CallVehicleTicks vehicle loop

This commit is contained in:
Jonathan G Rennison
2019-01-25 20:17:15 +00:00
parent 5995e825bc
commit e5b61e0b6c
14 changed files with 230 additions and 99 deletions

View File

@@ -1280,4 +1280,12 @@ struct FreeUnitIDGenerator {
/** Sentinel for an invalid coordinate. */
static const int32 INVALID_COORD = 0x7fffffff;
inline void InvalidateVehicleTickCaches()
{
extern bool _tick_caches_valid;
_tick_caches_valid = false;
}
void ClearVehicleTickCaches();
#endif /* VEHICLE_BASE_H */