diff options
author | rubidium <rubidium@openttd.org> | 2009-07-16 10:13:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-07-16 10:13:33 +0000 |
commit | 594070194f62cd336ff25b51dd603d24f1368d17 (patch) | |
tree | db5d74eb50fd21f249a9731efa64dba91e45e711 /src/aircraft_cmd.cpp | |
parent | fd589b90e8ab795a2bc9190309dce6cae917976c (diff) | |
download | openttd-594070194f62cd336ff25b51dd603d24f1368d17.tar.xz |
(svn r16842) -Cleanup: add some spaces around a few operators
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index e3cd7f608..8d0a3dda0 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -707,7 +707,7 @@ void SetAircraftPosition(Aircraft *v, int x, int y, int z) int safe_x = Clamp(x, 0, MapMaxX() * TILE_SIZE); int safe_y = Clamp(y - 1, 0, MapMaxY() * TILE_SIZE); u->x_pos = x; - u->y_pos = y - ((v->z_pos-GetSlopeZ(safe_x, safe_y)) >> 3);; + u->y_pos = y - ((v->z_pos - GetSlopeZ(safe_x, safe_y)) >> 3);; safe_y = Clamp(u->y_pos, 0, MapMaxY() * TILE_SIZE); u->z_pos = GetSlopeZ(safe_x, safe_y); @@ -800,7 +800,7 @@ static int UpdateAircraftSpeed(Aircraft *v, uint speed_limit = SPEED_LIMIT_NONE, speed_limit = min(speed_limit, v->max_speed); - v->subspeed = (t=v->subspeed) + (byte)spd; + v->subspeed = (t = v->subspeed) + (byte)spd; /* Aircraft's current speed is used twice so that very fast planes are * forced to slow down rapidly in the short distance needed. The magic @@ -1160,7 +1160,7 @@ static bool HandleCrashedAircraft(Aircraft *v) if (v->crashed_counter < 650) { uint32 r; - if (Chance16R(1,32,r)) { + if (Chance16R(1, 32, r)) { static const DirDiff delta[] = { DIRDIFF_45LEFT, DIRDIFF_SAME, DIRDIFF_SAME, DIRDIFF_45RIGHT }; |