summaryrefslogtreecommitdiff
path: root/src/vehicle.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-24 17:01:23 +0000
committerrubidium <rubidium@openttd.org>2007-07-24 17:01:23 +0000
commit5d3f058b65c97b61709061b721d1ad6922dbc9ef (patch)
tree08ce082e1855582f3c9d1c228a0928e71c054c80 /src/vehicle.h
parent0d9a51de6ddc432e3d48bf5f2ff5027067273f2c (diff)
downloadopenttd-5d3f058b65c97b61709061b721d1ad6922dbc9ef.tar.xz
(svn r10673) -Cleanup: some assorted style cleanups. Primarily type* var -> type *var.
Diffstat (limited to 'src/vehicle.h')
-rw-r--r--src/vehicle.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vehicle.h b/src/vehicle.h
index 07d2e3acd..880d41562 100644
--- a/src/vehicle.h
+++ b/src/vehicle.h
@@ -352,7 +352,7 @@ struct Vehicle {
* @param v the vehicle to use as 'storage' backend
* @return the memory that is 'allocated'
*/
- void* operator new(size_t size, Vehicle *v) { return v; }
+ void *operator new(size_t size, Vehicle *v) { return v; }
/**
* 'Free' the memory allocated by the overriden new.
@@ -516,7 +516,7 @@ void AfterLoadVehicles();
Vehicle *GetLastVehicleInChain(Vehicle *v);
Vehicle *GetPrevVehicleInChain(const Vehicle *v);
Vehicle *GetFirstVehicleInChain(const Vehicle *v);
-uint CountVehiclesInChain(const Vehicle* v);
+uint CountVehiclesInChain(const Vehicle *v);
bool IsEngineCountable(const Vehicle *v);
void DeleteVehicleChain(Vehicle *v);
void *VehicleFromPos(TileIndex tile, void *data, VehicleFromPosProc *proc);
@@ -592,7 +592,7 @@ enum {
};
struct GetNewVehiclePosResult {
- int x,y;
+ int x, y;
TileIndex old_tile;
TileIndex new_tile;
};
@@ -612,10 +612,10 @@ Trackdir GetVehicleTrackdir(const Vehicle* v);
/* returns true if staying in the same tile */
GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
-Direction GetDirectionTowards(const Vehicle* v, int x, int y);
+Direction GetDirectionTowards(const Vehicle *v, int x, int y);
#define BEGIN_ENUM_WAGONS(v) do {
-#define END_ENUM_WAGONS(v) } while ( (v=v->next) != NULL);
+#define END_ENUM_WAGONS(v) } while ((v = v->next) != NULL);
DECLARE_OLD_POOL(Vehicle, Vehicle, 9, 125)