Commit Graph
28908 Commits
Author SHA1 Message Date
RubidiumandPeter Nelson 1897ddec41 Fix: allow only 255 league tables, as 255 is the invalid id sentinel 2024-04-30 22:03:24 +01:00
Peter NelsonandPeter Nelson 7c529cfc4b Fix #12433: Width of unit number display was too narrow. (#12534)
Digit width was counted, but ignored the thousands separator.
2024-04-30 22:03:24 +01:00
glx22andLoïc Guilloux dc7a0913d2 Update: Backport language changes 2024-04-20 15:13:59 +02:00
Tyler TrahanandLoïc Guilloux 10ae9a7ea1 Fix: Mark vehicle status bars dirty when a vehicle leaves unbunching depot (#12516) 2024-04-20 15:13:59 +02:00
Jonathan G RennisonandLoïc Guilloux fe3a0a2418 Fix #12506: Update station/industry nearby lists in BuildOilRig (#12511) 2024-04-20 15:13:59 +02:00
Patric StoutandLoïc Guilloux 9e7b7a477e Codechange: improve desync documentation (#12521) 2024-04-20 15:13:59 +02:00
Patric StoutandLoïc Guilloux 257704ae9a Codechange: skip all commands of the past during desync replay (#12520) 2024-04-20 15:13:59 +02:00
Patric StoutandLoïc Guilloux cd6946c5a8 Codechange: use infinite-fast-forward when rerunning command-log (#12519) 2024-04-20 15:13:59 +02:00
Patric StoutandLoïc Guilloux 151e80650f Codefix: don't send desync=0 log messages to commands.log (#12517)
They are only used during replay, and you want to see those in
the console; not in the log.
2024-04-20 15:13:59 +02:00
Patric StoutandLoïc Guilloux 5b0b7ba354 Codechange: record cache warnings with a "warning" prefix (#12518) 2024-04-20 15:13:59 +02:00
Tyler TrahanandLoïc Guilloux fa4245dcba Fix: Don't show train waiting for unbunching as waiting for free path (#12515) 2024-04-20 15:13:59 +02:00
Tyler TrahanandLoïc Guilloux b5c2357dfe Fix: Smooth outliers in unbunching round trip calculations (#12513) 2024-04-20 15:13:59 +02:00
Tyler TrahanandLoïc Guilloux b64cd74a0c Codefix: Don't mix signed and unsigned ints in unbunching calculations (#12514) 2024-04-20 15:13:59 +02:00
Peter NelsonandLoïc Guilloux 7738d507c8 Fix c38df2d58: Use VehicleID instead of pointer in map of vehicles to replace. (#12512)
This affects the sort order, VehicleID is deterministic, Vehicle * is not.
2024-04-20 15:13:59 +02:00
Paco EstebanandLoïc Guilloux bb76f2e396 Codechange: Use arc4random_buf on random_func.cpp for OpenBSD 2024-04-20 15:13:59 +02:00
Koen BussemakerandLoïc Guilloux 6359d5e20c Fix #12228, Fix #12231: CheckShipReverse only restricts path when it has to 2024-04-20 15:13:59 +02:00
Peter NelsonandLoïc Guilloux a69cbc3b46 Add: Check that towns can build roads before generating map. (#12503) 2024-04-20 15:13:59 +02:00
Koen BussemakerandLoïc Guilloux 85a21a1654 Doc: Updated Visual Studio, cpp standard and Cmake version 2024-04-20 15:13:59 +02:00
SamuXarickandLoïc Guilloux 6a6ab82050 Codechange: Where the ship comes from is already known
This simplifies the handling of variables.

`ChooseShipTrack` is called upon entering `tile`, and looking further back to the caller, it can be deduced that `v->tile` matches `src_tile`. With that said, `enterdir` can also be removed, as it's not used anywhere else.

`CreateRandomPath` and `GetRandomFollowUpTrackdir` is being fed `src_tile` as it's 2nd parameter. This could be eliminated, as `v` is also being passed to it. Just use `v->tile` in those functions.
2024-04-20 15:13:59 +02:00
Peter NelsonandLoïc Guilloux 9baff60f66 Codefix: Remove no-longer used ship special-case. (#12192)
This special-case has not been triggered since multi-tile docks were introduced.
2024-04-20 15:13:59 +02:00
b3c704a630 Doc: Prepare for 14.0 release (#12490)
* Doc: Prepare for 14.0 release

* Fix: applied code review

Co-authored-by: rubidium42 <rubidium42@users.noreply.github.com>

* Fix: apply suggestion

Co-authored-by: Patric Stout <github@truebrain.nl>

* Fix: Apply suggestions from code review

Co-authored-by: Patric Stout <github@truebrain.nl>

* Fix: apply suggestions

---------

Co-authored-by: Patric Stout <github@truebrain.nl>
Co-authored-by: rubidium42 <rubidium42@users.noreply.github.com>
14.0
2024-04-13 12:28:18 +00:00
glx22andLoïc Guilloux a4adab31fc Update: Backport language changes 2024-04-12 21:40:34 +02:00
Peter NelsonandLoïc Guilloux 2fa6d79453 Fix #12477: Use std::filesystem::rename instead of Windows Shell API call. (#12478) 2024-04-12 21:40:34 +02:00
Peter NelsonandLoïc Guilloux 11e6d2e3d4 Fix: Signature validation did not close its file. (#12479) 2024-04-12 21:40:34 +02:00
Peter NelsonandLoïc Guilloux 3425aeac85 Fix: Use clear() to clear std::string. (#12471) 2024-04-12 21:40:34 +02:00
glx22andLoïc Guilloux 8fd30a0a17 Update: Backport language changes 2024-04-09 23:46:14 +02:00
Peter NelsonandLoïc Guilloux 481736fdfd Codechange: Avoid lengthof() on std::array. 2024-04-09 23:46:14 +02:00
RubidiumandLoïc Guilloux 40efa94d82 Codechange: let lengthof fail when anything that isn't a C-style array is passed 2024-04-09 23:46:14 +02:00
RubidiumandLoïc Guilloux 6a9517a4e6 Fix: do not use lengthof() for non C-style arrays 2024-04-09 23:46:14 +02:00
Peter NelsonandLoïc Guilloux 774ea5676f Fix: Aircraft crash counter was too low to reach ground. (#12425)
Aircraft can float above the ground when crashed as the counter limit to reach the ground is too low.

Instead reset the counter until the aircraft reaches the ground, then continue the timer.
2024-04-09 23:46:14 +02:00
Peter NelsonandLoïc Guilloux 75a1bc7831 Fix #12233: Mini order list overlaps vehicle group name. (#12423)
Move mini order list down one line to make room.
2024-04-09 23:46:14 +02:00
Peter NelsonandLoïc Guilloux bd6acf405b Fix #12114: Viewport coords of crashed aircraft not updated when falling. (#12424)
This results in the aircraft glitching as the wrong viewport area is drawn.
2024-04-09 23:46:14 +02:00
Peter NelsonandLoïc Guilloux eb730cb7f8 Fix #12395: Ensure president name widget is tall enough. (#12419) 2024-04-09 23:46:14 +02:00
Peter NelsonandLoïc Guilloux 0ee151623c Fix: Segfault when using -q without providing a . character. (#12418)
Use std::filesystem::path to find extension instead of strrchr.
2024-04-09 23:46:14 +02:00
Loïc Guilloux ee2ee15a1e Fix #12415, 9c49a61, df400ef: Aircraft::tile is valid only for front vehicle (#12416) 2024-04-09 23:46:14 +02:00
Peter NelsonandLoïc Guilloux 680c8c20f2 Fix a29766d: Wrong scrolling dropdown list position with RTL. (#12412) 2024-04-09 23:46:14 +02:00
glx22andLoïc Guilloux cd9c9afcb6 Update: Backport language changes 2024-04-02 00:02:53 +02:00
Loïc Guilloux 273b571408 Fix: [Win32] Force font mapper to only use TrueType fonts (#12406) 2024-04-02 00:02:53 +02:00
RubidiumandLoïc Guilloux 48f316246c Fix: server shutdown and newgame packets should be stable
The server sends shutdown and newgame (reboot) packets to any connected client.
This can be useful, so you can tell clients that are trying to join that the
server is restarting. However, that means that packets can be sent before a
version check has been done.
So, these packets should be in the stable packet range instead of the one that
is unstable and guarded by a version check.
2024-04-02 00:02:53 +02:00
Patric StoutandMichael Lutz 6bfd2b4aa9 Remove: official support for MSVC 2019 (#12254) 2024-04-01 00:20:07 +02:00
Michael Lutz 77980fa674 Update: Backport language changes 2024-04-01 00:20:07 +02:00
Patric StoutandMichael Lutz efd0c2f542 Cleanup 69d5b9d3: actually clean up all remnants of "no-thread" builds (#12398) 2024-04-01 00:20:07 +02:00
Patric StoutandMichael Lutz 470a3bd736 Fix: "-q" displays NewGRF IDs in the wrong byte-order (#12397) 2024-04-01 00:20:07 +02:00
froschandMichael Lutz 72fcf8b70b Fix: [Script] ScriptSubsidy::GetExpireDate should return an economy-date (#12372) 2024-04-01 00:20:07 +02:00
Michael Lutz f596d4c10a Fix eabb9db: Drag building of road stops should not allow mixing z levels. 2024-04-01 00:20:07 +02:00
Michael Lutz 6d3c8cc601 Fix #12387, eabb9db: [NewGRF] Wrong tile offset passed to rail station CB 149 (slope check) 2024-04-01 00:20:07 +02:00
Loïc GuillouxandMichael Lutz 2d4f0872b3 Change: [CI] Always use latest stable Xcode (#12390) 2024-04-01 00:20:07 +02:00
Jonathan G RennisonandMichael Lutz 7fcc5de374 Fix #12388: Vehicle::CopyVehicleConfigAndStatistics not releasing unit number (#12389) 2024-04-01 00:20:07 +02:00
RubidiumandMichael Lutz 3b614d0650 Fix: inconsistent check for client authorized status 2024-04-01 00:20:07 +02:00
RubidiumandMichael Lutz ffb795e52f Fix: do not send chat to clients that have not authorized yet 2024-04-01 00:20:07 +02:00