(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls

This commit is contained in:
smatz
2011-12-18 17:17:18 +00:00
parent 7c5545dd3b
commit 36747f96a6
12 changed files with 19 additions and 12 deletions

View File

@@ -50,7 +50,7 @@ struct AircraftCache {
/**
* Aircraft, helicopters, rotors and their shadows belong to this class.
*/
struct Aircraft : public SpecializedVehicle<Aircraft, VEH_AIRCRAFT> {
struct Aircraft FINAL : public SpecializedVehicle<Aircraft, VEH_AIRCRAFT> {
uint16 crashed_counter; ///< Timer for handling crash animations.
byte pos; ///< Next desired position of the aircraft.
byte previous_pos; ///< Previous desired position of the aircraft.