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 | 5ff81aca1873824af8b00eeb74ddedfce9dfef4a (patch) | |
tree | 1e96eadb775a124c36850f50c357f93af14e4be2 /src/depot.h | |
parent | d4290086e800bfb66ac5a51ceabf57d058887559 (diff) | |
download | openttd-5ff81aca1873824af8b00eeb74ddedfce9dfef4a.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/depot.h')
-rw-r--r-- | src/depot.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot.h b/src/depot.h index 1b3de1b86..70a12d0bc 100644 --- a/src/depot.h +++ b/src/depot.h @@ -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) |