diff options
author | rubidium <rubidium@openttd.org> | 2007-08-30 20:40:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-30 20:40:33 +0000 |
commit | 8a6cc3aa104b5f8631dcb74343dcd68ffa3308ec (patch) | |
tree | 1e96eadb775a124c36850f50c357f93af14e4be2 /src/industry.h | |
parent | 9833639b00ff84b671a3943e350ed195935e31ad (diff) | |
download | openttd-8a6cc3aa104b5f8631dcb74343dcd68ffa3308ec.tar.xz |
(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.
Diffstat (limited to 'src/industry.h')
-rw-r--r-- | src/industry.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry.h b/src/industry.h index c19dd83ae..265f2a333 100644 --- a/src/industry.h +++ b/src/industry.h @@ -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 { |