Merge branch 'master' into jgrpp
# Conflicts: # src/blitter/32bpp_anim.cpp # src/blitter/32bpp_anim.hpp # src/blitter/32bpp_anim_sse2.cpp # src/blitter/32bpp_base.cpp # src/blitter/32bpp_base.hpp # src/ground_vehicle.cpp # src/linkgraph/linkgraph_gui.h # src/main_gui.cpp # src/newgrf_house.cpp # src/newgrf_house.h # src/town_cmd.cpp # src/vehicle_base.h # src/viewport_gui.cppp
This commit is contained in:
@@ -381,9 +381,8 @@ public:
|
||||
/**
|
||||
* Updates the x and y offsets and the size of the sprite used
|
||||
* for this vehicle.
|
||||
* @param direction the direction the vehicle is facing
|
||||
*/
|
||||
virtual void UpdateDeltaXY(Direction direction) {}
|
||||
virtual void UpdateDeltaXY() {}
|
||||
|
||||
/**
|
||||
* Determines the effective direction-specific vehicle movement speed.
|
||||
@@ -1233,7 +1232,7 @@ struct SpecializedVehicle : public Vehicle {
|
||||
|
||||
/* Explicitly choose method to call to prevent vtable dereference -
|
||||
* it gives ~3% runtime improvements in games with many vehicles */
|
||||
if (update_delta) ((T *)this)->T::UpdateDeltaXY(this->direction);
|
||||
if (update_delta) ((T *)this)->T::UpdateDeltaXY();
|
||||
if (this->cur_image_valid_dir != this->direction) {
|
||||
_sprite_group_resolve_check_veh_check = true;
|
||||
_sprite_group_resolve_check_veh_type = EXPECTED_TYPE;
|
||||
|
||||
Reference in New Issue
Block a user