diff options
author | tron <tron@openttd.org> | 2005-10-03 21:20:01 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-03 21:20:01 +0000 |
commit | db3b1228bfad7fb42ce708dc93db21d840b07577 (patch) | |
tree | 4379525d1560a92903c1fdc87cdbad70a36ea271 /aircraft_cmd.c | |
parent | b0a365ee676b8b612d88a3df1cac904db73e8bcf (diff) | |
download | openttd-db3b1228bfad7fb42ce708dc93db21d840b07577.tar.xz |
(svn r3010) Get rid of quite some dubious casts, either by using GB(), proper types or just removing them
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++) { |