summaryrefslogtreecommitdiff
path: root/src/depot.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-30 20:40:33 +0000
committerrubidium <rubidium@openttd.org>2007-08-30 20:40:33 +0000
commit8a6cc3aa104b5f8631dcb74343dcd68ffa3308ec (patch)
tree1e96eadb775a124c36850f50c357f93af14e4be2 /src/depot.h
parent9833639b00ff84b671a3943e350ed195935e31ad (diff)
downloadopenttd-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/depot.h')
-rw-r--r--src/depot.h2
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)