diff options
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r-- | aircraft_cmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c index 948d27742..244dab455 100644 --- a/aircraft_cmd.c +++ b/aircraft_cmd.c @@ -1239,8 +1239,7 @@ static void MaybeCrashAirplane(Vehicle *v) prob = 0x10000 / 20; } - if ((uint16)Random() > prob) - return; + if (GB(Random(), 0, 16) > prob) return; // Crash the airplane. Remove all goods stored at the station. for(i=0; i!=NUM_CARGO; i++) { |