This is for trains/RVs only (to avoid issues with variable sprite bounds)
This largely fixes the performance issues of continuously updating
vehicle images
VCF_REDRAW_ON_TRIGGER=3,///< Clear cur_image_valid_dir on changes to waiting_triggers (valid only for the first engine)
VCF_REDRAW_ON_SPEED_CHANGE=4,///< Clear cur_image_valid_dir on changes to cur_speed (ground vehicles) or aircraft movement state (aircraft) (valid only for the first engine)
VCF_IMAGE_REFRESH=5,///< Image should be refreshed before drawing
VCF_IMAGE_REFRESH_NEXT=6,///< Set VCF_IMAGE_REFRESH in next UpdateViewport call, if the image is not updated there
};
/** Cached often queried values common to all vehicles. */
@ -1280,15 +1282,26 @@ struct SpecializedVehicle : public Vehicle {