From 5ff81aca1873824af8b00eeb74ddedfce9dfef4a Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 30 Aug 2007 20:40:33 +0000 Subject: (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. --- src/town.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/town.h') 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 { /** Destroy the town */ ~Town(); - bool IsValid() const { return this->xy != 0; } + inline bool IsValid() const { return this->xy != 0; } }; struct HouseSpec { -- cgit v1.2.3-54-g00ecf