(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls
This commit is contained in:
@@ -84,7 +84,7 @@ void RoadVehUpdateCache(RoadVehicle *v, bool same_length = false);
|
||||
/**
|
||||
* Buses, trucks and trams belong to this class.
|
||||
*/
|
||||
struct RoadVehicle : public GroundVehicle<RoadVehicle, VEH_ROAD> {
|
||||
struct RoadVehicle FINAL : public GroundVehicle<RoadVehicle, VEH_ROAD> {
|
||||
byte state; ///< @see RoadVehicleStates
|
||||
byte frame;
|
||||
uint16 blocked_ctr;
|
||||
|
Reference in New Issue
Block a user