Advertisement
Guest User

Untitled

a guest
Oct 29th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. Index: code/ship/ship.cpp
  2. ===================================================================
  3. --- code/ship/ship.cpp (revision 7935)
  4. +++ code/ship/ship.cpp (working copy)
  5. @@ -2315,7 +2315,6 @@
  6. }
  7.  
  8. // Get default secondary bank weapons
  9. -
  10. if(optional_string("$Default SBanks:"))
  11. {
  12. strcat_s(parse_error_text,"'s default secondary banks");
  13. @@ -2332,6 +2331,18 @@
  14. Warning(LOCATION, "Secondary bank capacities have not been completely specified for ship class %s... fix this!!", sip->name);
  15. }
  16. }
  17. +
  18. + //CommanderDJ - if there are no default banks, bank capacity is optional
  19. + else if(optional_string("$SBank Capacity:"))
  20. + {
  21. + strcat_s(parse_error_text,"'s secondary banks capacities");
  22. + sbank_capacity_count = stuff_int_list(sip->secondary_bank_ammo_capacity, MAX_SHIP_SECONDARY_BANKS, RAW_INTEGER_TYPE);
  23. + strcpy_s(parse_error_text, temp_error);
  24. + if ( sbank_capacity_count != sip->num_secondary_banks )
  25. + {
  26. + Warning(LOCATION, "Secondary bank capacities have not been completely specified for ship class %s... fix this!!", sip->name);
  27. + }
  28. + }
  29.  
  30. if(optional_string("$Show Secondary Models:"))
  31. {
  32.  
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement