(svn r16491) -Codechange: Added parentheses around bitwise operators for code style.
This commit is contained in:
@@ -105,8 +105,8 @@ bool LoadChunk(LoadgameState *ls, void *base, const OldChunks *chunks)
|
||||
byte *base_ptr = (byte*)base;
|
||||
|
||||
for (const OldChunks *chunk = chunks; chunk->type != OC_END; chunk++) {
|
||||
if (((chunk->type & OC_TTD) && (_savegame_type == SGT_TTO)) ||
|
||||
((chunk->type & OC_TTO) && (_savegame_type != SGT_TTO))) {
|
||||
if (((chunk->type & OC_TTD) && _savegame_type == SGT_TTO) ||
|
||||
((chunk->type & OC_TTO) && _savegame_type != SGT_TTO)) {
|
||||
/* TTD(P)-only chunk, but TTO savegame || TTO-only chunk, but TTD/TTDP savegame */
|
||||
continue;
|
||||
}
|
||||
|
@@ -165,7 +165,7 @@ void UpdateOldAircraft()
|
||||
* skip those */
|
||||
if (IsNormalAircraft(a)) {
|
||||
/* airplane in terminal stopped doesn't hurt anyone, so goto next */
|
||||
if (a->vehstatus & VS_STOPPED && a->state == 0) {
|
||||
if ((a->vehstatus & VS_STOPPED) && a->state == 0) {
|
||||
a->state = HANGAR;
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user