(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:
@@ -123,7 +123,7 @@ struct Industry : PoolItem<Industry, IndustryID, &_Industry_pool> {
|
||||
Industry(TileIndex tile = 0) : xy(tile) {}
|
||||
~Industry();
|
||||
|
||||
bool IsValid() const { return this->xy != 0; }
|
||||
inline bool IsValid() const { return this->xy != 0; }
|
||||
};
|
||||
|
||||
struct IndustryTileTable {
|
||||
|
Reference in New Issue
Block a user