summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-01-09 22:56:28 +0000
committerrubidium <rubidium@openttd.org>2009-01-09 22:56:28 +0000
commitcda853872aa079139f25fc9492bdb73476c213e0 (patch)
tree378bc97d52ab0658bfed8695d1ce2f01bf572802 /src/vehicle.cpp
parentc08f520acf61f85f84e9bdb1dad8172d2c29a48b (diff)
downloadopenttd-cda853872aa079139f25fc9492bdb73476c213e0.tar.xz
(svn r14944) -Cleanup: add spaces around some operators
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index ec20909f1..d84be5218 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -860,7 +860,7 @@ Vehicle *CheckClickOnVehicle(const ViewPort *vp, int x, int y)
y = ScaleByZoom(y, vp->zoom) + vp->virtual_top;
FOR_ALL_VEHICLES(v) {
- if ((v->vehstatus & (VS_HIDDEN|VS_UNCLICKABLE)) == 0 &&
+ if ((v->vehstatus & (VS_HIDDEN | VS_UNCLICKABLE)) == 0 &&
x >= v->left_coord && x <= v->right_coord &&
y >= v->top_coord && y <= v->bottom_coord) {
@@ -958,7 +958,7 @@ void AgeVehicle(Vehicle *v)
if (v->age < 65535) v->age++;
int age = v->age - v->max_age;
- if (age == 366*0 || age == 366*1 || age == 366*2 || age == 366*3 || age == 366*4) v->reliability_spd_dec <<= 1;
+ if (age == 366 * 0 || age == 366 * 1 || age == 366 * 2 || age == 366 * 3 || age == 366 * 4) v->reliability_spd_dec <<= 1;
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);