Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. else if(key == "MultBy") {
  2. if(value.startswith("Hex.")) {
  3. value = value.substr(4);
  4. stat.divType = SVT_HexVariable;
  5. stat.divVar = 1.0f / getHexVariable(value);
  6. }
  7. else if(value.startswith("Ship.")) {
  8. value = value.substr(5);
  9. stat.divType = SVT_ShipVariable;
  10. stat.divVar = 1.0f / getShipVariable(value);
  11. }
  12. else {
  13. stat.divType = SVT_SubsystemVariable;
  14. stat.divVar = 1.0f / getSubsystemVariable(value);
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement