Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: code/ship/ship.cpp
- ===================================================================
- --- code/ship/ship.cpp (revision 7935)
- +++ code/ship/ship.cpp (working copy)
- @@ -2315,7 +2315,6 @@
- }
- // Get default secondary bank weapons
- -
- if(optional_string("$Default SBanks:"))
- {
- strcat_s(parse_error_text,"'s default secondary banks");
- @@ -2332,6 +2331,18 @@
- Warning(LOCATION, "Secondary bank capacities have not been completely specified for ship class %s... fix this!!", sip->name);
- }
- }
- +
- + //CommanderDJ - if there are no default banks, bank capacity is optional
- + else if(optional_string("$SBank Capacity:"))
- + {
- + strcat_s(parse_error_text,"'s secondary banks capacities");
- + sbank_capacity_count = stuff_int_list(sip->secondary_bank_ammo_capacity, MAX_SHIP_SECONDARY_BANKS, RAW_INTEGER_TYPE);
- + strcpy_s(parse_error_text, temp_error);
- + if ( sbank_capacity_count != sip->num_secondary_banks )
- + {
- + Warning(LOCATION, "Secondary bank capacities have not been completely specified for ship class %s... fix this!!", sip->name);
- + }
- + }
- if(optional_string("$Show Secondary Models:"))
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement