(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.
This commit is contained in:
@@ -418,12 +418,6 @@ Waypoint::~Waypoint()
|
||||
this->xy = 0;
|
||||
}
|
||||
|
||||
bool Waypoint::IsValid() const
|
||||
{
|
||||
return this->xy != 0;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Fix savegames which stored waypoints in their old format
|
||||
*/
|
||||
|
Reference in New Issue
Block a user