Loading

Paste #pnlm7apwn

  1.     /* Adjust speed limits by plane speed factor to prevent taxiing
  2.      * and take-off speeds being too low. */
  3.     speed_limit *= _settings_game.vehicle.plane_speed;
  4.  
  5.     /* adjust speed for broken vehicles */
  6.     if (v->vehstatus & VS_AIRCRAFT_BROKEN) {
  7.         if (speed_limit > SPEED_LIMIT_BROKEN && v->cur_speed > min(speed_limit, SPEED_LIMIT_BROKEN)) {
  8.             hard_limit = false;
  9.         }
  10.         speed_limit = min(speed_limit, SPEED_LIMIT_BROKEN);
  11.     }
  12.  
  13.     if (v->vcache.cached_max_speed < speed_limit) {
  14.         if (v->cur_speed < speed_limit) hard_limit = false;
  15.         speed_limit = v->vcache.cached_max_speed;
  16.     }

Version history

Revision # Author Created at
pmxadixsr Anonymous 08 Oct 2018, 14:18:47 UTC Diff

Comments