(svn r11009) -Codechange: unvirtualise IsValid as that isn't needed with templates. This gives up to 10% performance increase in games with lots of vehicles.
This commit is contained in:
@@ -30,7 +30,7 @@ struct Waypoint : PoolItem<Waypoint, WaypointID, &_Waypoint_pool> {
|
||||
Waypoint(TileIndex tile = 0);
|
||||
~Waypoint();
|
||||
|
||||
bool IsValid() const;
|
||||
inline bool IsValid() const { return this->xy != 0; }
|
||||
};
|
||||
|
||||
static inline bool IsValidWaypointID(WaypointID index)
|
||||
|
Reference in New Issue
Block a user