Commit Graph

52678 Commits

Author SHA1 Message Date
Jonathan G Rennison
d1114b6b79 Fix build wagon button building locomotives instead 2021-06-28 23:43:37 +01:00
Jonathan G Rennison
ab5cee70ec Fix whitespace/code style issues 2021-06-28 23:38:12 +01:00
Jonathan G Rennison
42d1987713 Fix crash when building template vehicles 2021-06-28 23:35:00 +01:00
Jonathan G Rennison
1a7ebfd06c Fix duplication of sorter functions 2021-06-28 23:13:50 +01:00
Jonathan G Rennison
b4856d3164 Trim trailing whitespace 2021-06-28 23:02:16 +01:00
Jonathan G Rennison
dab1501b7c Merge pull request #292 from VacuumBreather/minor_additions
Minor additions
2021-06-28 22:41:26 +01:00
Jonathan G Rennison
906ee568d6 Use a lower resort interval in veh windows when sorting by timetable delay 2021-06-28 22:37:40 +01:00
Jonathan G Rennison
c9c6b4cd92 Make GUIList resort interval variable 2021-06-28 22:37:00 +01:00
Andreas Schmitt
0f07ae839d Make the sort order toggle button resort a vehicle list 2021-06-28 21:41:35 +01:00
Jonathan G Rennison
b94b6268da Merge pull request #291 from VacuumBreather/fix_warnings
Fix a few compiler warnings
2021-06-28 20:33:46 +01:00
translators
c539343ba9 Update: Translations from eints
swedish: 1 change by joeax910
2021-06-28 19:00:24 +00:00
TELK
f9b4a3a5e6 Add: Show the number of clients and companies in the online players window (#9376) 2021-06-28 18:42:23 +02:00
embeddedt
883e4ea325 Change: [Emscripten] set default scrolling mode to non-pointer-locking (#9191) 2021-06-28 18:39:09 +02:00
Jonathan G Rennison
11e49ef99e Only apply signal speed restrictions from the front direction 2021-06-28 00:04:12 +01:00
SamuXarick
003b6a0c85 Fix ea9715d: not all setting values were clamped properly (#9401) 2021-06-28 00:58:54 +02:00
Jonathan G Rennison
5fb3eb0bb9 Adjust signal speed restriction timeouts when date or day length changed 2021-06-27 23:07:32 +01:00
Jonathan G Rennison
e16c29ef7d Use already found iterator for erasing from hash map 2021-06-27 23:06:41 +01:00
Jonathan G Rennison
62075c88de Apply ATC speed restriction as advisory to prevent instant braking
Remove redundant function
2021-06-27 22:26:57 +01:00
Jonathan G Rennison
93be763301 Update ticks per tile constant 2021-06-27 22:12:29 +01:00
translators
59e96cd56a Update: Translations from eints
swedish: 6 changes by joeax910
finnish: 1 change by hpiirai
catalan: 9 changes by J0anJosep
2021-06-27 18:50:30 +00:00
Loïc Guilloux
87eb0e4fce Fix #9402, 2e136285: Crash when founding town using default name (#9403) 2021-06-27 17:18:21 +02:00
Jonathan G Rennison
c4a596b756 Fix missing file from fb0403dc 2021-06-27 09:30:09 +01:00
Jonathan G Rennison
fb0403dcee Add save/load support for train speed adaptation 2021-06-27 04:41:46 +01:00
Jonathan G Rennison
ee2d77ecab Move train speed adaptation structs to separate header file 2021-06-27 04:41:46 +01:00
Jonathan G Rennison
84f973880b Add signal speed restriction to vehicle debug info 2021-06-27 04:41:46 +01:00
Jonathan G Rennison
3bba9ef37a Fix setting name 2021-06-27 04:41:46 +01:00
Jonathan G Rennison
879a23811f Clear state when setting changed 2021-06-27 04:41:46 +01:00
Jonathan G Rennison
e15acd3af8 Avoid train speed adaption overhead when setting not enabled 2021-06-27 04:41:46 +01:00
Jonathan G Rennison
1819a4218b Clear signal speed restriction at game shutdown 2021-06-27 04:41:46 +01:00
Jonathan G Rennison
4d0cda12bd Fix saving one byte at a time in Save_SPRG 2021-06-27 04:12:27 +01:00
Jonathan G Rennison
be9b18df59 Fix wrong string code in lang text in 6c07758c 2021-06-27 04:11:09 +01:00
Jonathan G Rennison
28e39c9045 Fix trailing whitespace 2021-06-27 03:09:24 +01:00
Jonathan G Rennison
fdf9257649 Merge pull request #285 from VacuumBreather/drag_drop_group_name 2021-06-27 02:57:38 +01:00
Jonathan G Rennison
d246ba1dd1 Lower create group button when vehicle dragged over it 2021-06-27 02:55:21 +01:00
Jonathan G Rennison
6c07758cc3 Do name generation at client, fix localisation
Use existing group creation command
2021-06-27 02:28:52 +01:00
translators
da7621cc55 Update: Translations from eints
swedish: 1 change by joeax910
2021-06-26 18:50:34 +00:00
rubidium42
98e653dacc Fix #9386: compilers failing to compile with LTO by using variants instead of new + unique_ptr
With std::variant all memory can be figured out at compile time, so the compiler needs to keep track of fewer elements. It also saves out a unique_ptr and its memory management, over a slight impact for resolving a setting.
2021-06-26 20:28:34 +02:00
rubidium42
f35e6c1c7f Codechange: use C-style strings instread of std::string in the SettingDesc constructor
This as using std::string causes much more variables to be tracked, potentially causing problemes for certain compilers in certain situations
2021-06-26 20:28:34 +02:00
rubidium42
c93fcbcb28 Codechange: introduce helper to convert from the iterated type to the actual SettingDesc 2021-06-26 20:28:34 +02:00
rubidium42
f7f1d530b8 Codechange: instead of "naked" initializer lists, declare the type in the saveload macros
This to help variant's constructor to be able to resolve the constructor of the setting
2021-06-26 20:28:34 +02:00
rubidium42
f029fd0f3b Codechange: remove overloading on UpdateServiceInterval
One UpdateServiceInterval has two parameters to update the service interval for a vehicle type, the other for all vehicle types at once. Rename the latter to help with function resolution for the introduction of variants.
2021-06-26 20:28:34 +02:00
rubidium42
cdf9caf8ea Codechange: [Network] Remove overload on NetworkValidateClientName
Rename the zero-parameter NetworkValidateClientName to NetworkValidateOurClientName to make it clearer it is performed on our client name, and to make it a non-overloaded function to aid with the variant being added a few commits later
2021-06-26 20:28:34 +02:00
Patric Stout
0013673faf Change: prevent palette updates during copying to the video driver
ThreadSanitizer rightfully notices that the game-thread could
update the palette while the draw-thread is copying it for local
use. The odds of this are very small, but nevertheless, it does
carry a very good point.

It wouldn't hurt the application in any way, but it might cause
visual glitches on the screen.
2021-06-26 20:28:05 +02:00
Patric Stout
74186998a2 Codechange: use _cur_palette the same in all the drivers
It was a bit of a mixed bag. With this change, gfx.cpp is in
control who accesses _cur_palette from the video-drivers.
2021-06-26 20:28:05 +02:00
Patric Stout
1ed7afc0a8 Change: [GitHub] use an issue form to let people fill in bug report / crashes (#9400) 2021-06-26 13:51:29 +02:00
translators
95a94dcf90 Update: Translations from eints
swedish: 1 change by joeax910
dutch: 9 changes by Afoklala
2021-06-25 18:50:57 +00:00
Andreas Schmitt
9b1783809d Add station cargo history 2021-06-23 08:48:46 +02:00
Andreas Schmitt
dd0a1ca6c0 Set a maximum size for the left part of the build rail station window 2021-06-23 06:53:24 +02:00
Andreas Schmitt
29b227a3cd Fix a few compiler warnings 2021-06-23 05:45:10 +02:00
Jonathan G Rennison
9d4d72cd1e Merge pull request #286 from VacuumBreather/vehicle_more_info
Show more details on train max speed when loaded
2021-06-22 23:37:23 +01:00