diff options
author | frosch <frosch@openttd.org> | 2021-01-03 15:11:22 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2021-01-03 14:56:43 +0000 |
commit | b08d8c7edbad00026d1121028f3d99f1a416b1f6 (patch) | |
tree | a4512f2fd050c9132b9f42255fc93682ed4f3e4e /src | |
parent | d24a9a9df5502735bf607f2dda3ed99d9d0e7859 (diff) | |
download | openttd-b08d8c7edbad00026d1121028f3d99f1a416b1f6.tar.xz |
Cleanup 9f42358: Make also reliability_start randomised independent of introduction date.
Diffstat (limited to 'src')
-rw-r--r-- | src/engine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 575995f86..72da8702f 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -665,12 +665,12 @@ void StartupOneEngine(Engine *e, Date aging_date) RestoreRandomSeeds(saved_seeds); - e->reliability_start = GB(r, 16, 14) + 0x7AE0; r = Random(); + e->reliability_start = GB(r, 16, 14) + 0x7AE0; e->reliability_max = GB(r, 0, 14) + 0xBFFF; - e->reliability_final = GB(r, 16, 14) + 0x3FFF; r = Random(); + e->reliability_final = GB(r, 16, 14) + 0x3FFF; e->duration_phase_1 = GB(r, 0, 5) + 7; e->duration_phase_2 = GB(r, 5, 4) + ei->base_life * 12 - 96; e->duration_phase_3 = GB(r, 9, 7) + 120; |