Fix sprite bound issues for vehicles which vary bounds with curvature

If a vehicle uses curvature vars 0x45 or 0x62, cache the directions
of its 4 nearest neighbours, and check them in UpdateViewport along
with the vehicle's own direction.
This commit is contained in:
Jonathan G Rennison
2021-01-03 16:12:59 +00:00
parent bf313338c0
commit 204f8e173f
4 changed files with 36 additions and 1 deletions

View File

@@ -11,5 +11,6 @@
#define NEWGRF_CACHE_CHECK_H
extern bool _sprite_group_resolve_check_veh_check;
extern bool _sprite_group_resolve_check_veh_curvature_check;
#endif /* NEWGRF_CACHE_CHECK_H */