(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:
@@ -23,7 +23,7 @@ struct Depot : PoolItem<Depot, DepotID, &_Depot_pool> {
|
||||
Depot(TileIndex xy = 0) : xy(xy) {}
|
||||
~Depot();
|
||||
|
||||
bool IsValid() const { return this->xy != 0; }
|
||||
inline bool IsValid() const { return this->xy != 0; }
|
||||
};
|
||||
|
||||
static inline bool IsValidDepotID(DepotID index)
|
||||
|
Reference in New Issue
Block a user