summaryrefslogtreecommitdiff
path: root/src/signs.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/signs.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/signs.h')
-rw-r--r--src/signs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signs.h b/src/signs.h
index 05af404eb..59f07d1ed 100644
--- a/src/signs.h
+++ b/src/signs.h
@@ -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 {