(svn r20281) -Codechange: unify case scope closure + break coding style

This commit is contained in:
rubidium
2010-08-01 18:53:30 +00:00
parent 605f6d0ed3
commit e356cb9405
66 changed files with 427 additions and 215 deletions

View File

@@ -95,7 +95,8 @@ CommandCost CmdStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1,
Aircraft *a = Aircraft::From(v);
/* cannot stop airplane when in flight, or when taking off / landing */
if (!(v->vehstatus & VS_CRASHED) && a->state >= STARTTAKEOFF && a->state < TERM7) return_cmd_error(STR_ERROR_AIRCRAFT_IS_IN_FLIGHT);
} break;
break;
}
default: return CMD_ERROR;
}