summaryrefslogtreecommitdiff
path: root/src/town.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
commit5ff81aca1873824af8b00eeb74ddedfce9dfef4a (patch)
tree1e96eadb775a124c36850f50c357f93af14e4be2 /src/town.h
parentd4290086e800bfb66ac5a51ceabf57d058887559 (diff)
downloadopenttd-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/town.h')
-rw-r--r--src/town.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/town.h b/src/town.h
index 6d5707146..7f196ccbf 100644
--- a/src/town.h
+++ b/src/town.h
@@ -159,7 +159,7 @@ struct Town : PoolItem<Town, TownID, &_Town_pool> {
/** Destroy the town */
~Town();
- bool IsValid() const { return this->xy != 0; }
+ inline bool IsValid() const { return this->xy != 0; }
};
struct HouseSpec {