- if (sector_type == PRI_SMAINT){
- prod_ship(etu,n,bp,0);
- *ship_maint=1;
- }
- else
- if (sector_type == PRI_SBUILD){
- prod_ship(etu,n,bp,1);
- *ship_build=1;
- }
- else
- if (sector_type == PRI_PMAINT){
- prod_plane(etu,n,bp,0);
- *plane_maint=1;
- }
- else
- if (sector_type == PRI_PBUILD){
- prod_plane(etu,n,bp,1);
- *plane_build=1;
- }
- else
- if (sector_type == PRI_LMAINT){
- if (*land_build)
- np->nat_money -= (int) (money_mil * etu * mil_dbl_pay);
- prod_land(etu,n,bp,0);
- *land_maint=1;
- }
- else
- if (sector_type == PRI_LBUILD){
- prod_land(etu,n,bp,1);
- *land_build=1;
- }
- else {
- produce_sect(n,etu,bp,p_sect,sector_type);
- }
+ if (sector_type == PRI_SMAINT) {
+ prod_ship(etu, n, bp, 0);
+ *ship_maint = 1;
+ } else if (sector_type == PRI_SBUILD) {
+ prod_ship(etu, n, bp, 1);
+ *ship_build = 1;
+ } else if (sector_type == PRI_PMAINT) {
+ prod_plane(etu, n, bp, 0);
+ *plane_maint = 1;
+ } else if (sector_type == PRI_PBUILD) {
+ prod_plane(etu, n, bp, 1);
+ *plane_build = 1;
+ } else if (sector_type == PRI_LMAINT) {
+ if (*land_build)
+ np->nat_money -= (int)(money_mil * etu * mil_dbl_pay);
+ prod_land(etu, n, bp, 0);
+ *land_maint = 1;
+ } else if (sector_type == PRI_LBUILD) {
+ prod_land(etu, n, bp, 1);
+ *land_build = 1;
+ } else {
+ produce_sect(n, etu, bp, p_sect, sector_type);
+ }