summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-25 10:25:25 +0000
committertron <tron@openttd.org>2007-02-25 10:25:25 +0000
commit696b895b776ce8a990260d1a6829a93e675aa6c7 (patch)
treeabc5191717ba01b74c3935c96421507302feb34d /src/vehicle.h
parent1864d28cb8bfd85130e9f837424bba6d8876aa67 (diff)
downloadopenttd-696b895b776ce8a990260d1a6829a93e675aa6c7.tar.xz
(svn r8896) -Fix
Most (i.e. 13 of 15) callers of GetNewVehiclePos() do not care for the return and the others can figure it out by inspecting the information returned in struct GetNewVehiclePosResult. Therefore remove the return value.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index 93cb13117..8ac880e96 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -427,7 +427,7 @@ typedef struct GetNewVehiclePosResult {
Trackdir GetVehicleTrackdir(const Vehicle* v);
/* returns true if staying in the same tile */
-bool GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
+void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
Direction GetDirectionTowards(const Vehicle* v, int x, int y);
#define BEGIN_ENUM_WAGONS(v) do {