diff src/waypoint.h @ 7496:96d510452b4d draft

(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.
author rubidium <rubidium@openttd.org>
date Thu, 30 Aug 2007 20:40:33 +0000 (2007-08-30)
parents 571c87eed06c
children eafa6364d947
line wrap: on
line diff
--- a/src/waypoint.h
+++ b/src/waypoint.h
@@ -30,7 +30,7 @@
 	Waypoint(TileIndex tile = 0);
 	~Waypoint();
 
-	bool IsValid() const;
+	inline bool IsValid() const { return this->xy != 0; }
 };
 
 static inline bool IsValidWaypointID(WaypointID index)