(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:
@@ -26,7 +26,7 @@ struct Sign : PoolItem<Sign, SignID, &_Sign_pool> {
|
||||
/** Destroy the sign */
|
||||
~Sign();
|
||||
|
||||
bool IsValid() const { return this->str != STR_NULL; }
|
||||
inline bool IsValid() const { return this->str != STR_NULL; }
|
||||
};
|
||||
|
||||
enum {
|
||||
|
Reference in New Issue
Block a user