summaryrefslogtreecommitdiff
path: root/src/aircraft.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2011-12-18 17:17:18 +0000
committersmatz <smatz@openttd.org>2011-12-18 17:17:18 +0000
commit33d283fdb1710e40cff4daaabde6aa78325d4623 (patch)
tree474b5ad5f9b38019a1985a4b1a29ada6a7560260 /src/aircraft.h
parent88f1acd26bb2d7872526e4abc89549f622bb75ea (diff)
downloadopenttd-33d283fdb1710e40cff4daaabde6aa78325d4623.tar.xz
(svn r23588) -Codechange: use the 'final' keyword so compiler can optimise out some indirect calls
Diffstat (limited to 'src/aircraft.h')
-rw-r--r--src/aircraft.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/aircraft.h b/src/aircraft.h
index 8ba313cfa..938aaa403 100644
--- a/src/aircraft.h
+++ b/src/aircraft.h
@@ -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.