diff options
author | rubidium <rubidium@openttd.org> | 2007-08-30 20:40:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-30 20:40:33 +0000 |
commit | 8a6cc3aa104b5f8631dcb74343dcd68ffa3308ec (patch) | |
tree | 1e96eadb775a124c36850f50c357f93af14e4be2 /src/station.cpp | |
parent | 9833639b00ff84b671a3943e350ed195935e31ad (diff) | |
download | openttd-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/station.cpp')
-rw-r--r-- | src/station.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/station.cpp b/src/station.cpp index 78bdf2121..d6d0f7a65 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -237,14 +237,6 @@ bool Station::IsBuoy() const return (had_vehicle_of_type & HVOT_BUOY) != 0; } -/** Determines whether a station exists - * @todo replace 0 by INVALID_TILE - */ -bool Station::IsValid() const -{ - return xy != 0; -} - /************************************************************************/ /* StationRect implementation */ @@ -437,12 +429,6 @@ RoadStop::~RoadStop() xy = 0; } -/** Determines whether a RoadStop is a valid (i.e. existing) one */ -bool RoadStop::IsValid() const -{ - return xy != 0; -} - /** Checks whether there is a free bay in this road stop */ bool RoadStop::HasFreeBay() const { |