Advertisement
Benji23245

Untitled

Oct 22nd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. float __cdecl GetTimeBonus()
  2. {
  3. double result; // st7@3
  4.  
  5. if ( GetCurrentCharacterID() == Characters_Gamma )
  6. {
  7. if ( TimeMinutes < 3 )
  8. {
  9. return (double)(TimeSeconds + 60 * TimeMinutes) * 25.0;
  10. }
  11. return 5000.0;
  12. }
  13. if ( !TimeMinutes )
  14. {
  15. return 5000.0;
  16. }
  17. result = 5000.0 - (double)(TimeSeconds + 60 * TimeMinutes) * 10.0;
  18. if ( result < 0.0 )
  19. {
  20. result = 0.0;
  21. }
  22. return result;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement