diff options
author | rubidium <rubidium@openttd.org> | 2009-01-09 22:56:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-01-09 22:56:28 +0000 |
commit | cda853872aa079139f25fc9492bdb73476c213e0 (patch) | |
tree | 378bc97d52ab0658bfed8695d1ce2f01bf572802 /src/vehicle.cpp | |
parent | c08f520acf61f85f84e9bdb1dad8172d2c29a48b (diff) | |
download | openttd-cda853872aa079139f25fc9492bdb73476c213e0.tar.xz |
(svn r14944) -Cleanup: add spaces around some operators
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 4 |
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); |