Andreas Schmitt
4542410b41
Revert "Replace original algorithm with a simpler one"
...
This reverts commit 8cb3d80402f626034c08a162b8956dce03eb79f6.
2021-06-19 13:02:36 +01:00
Andreas Schmitt
9d6d41e457
Update src/lang/english.txt
...
Co-authored-by: stormcone <48624099+stormcone@users.noreply.github.com >
2021-06-19 13:02:36 +01:00
Andreas Schmitt
35ebeff874
Remove low performance containers with standard library ones
2021-06-19 13:02:36 +01:00
Andreas Schmitt
83ea6e9fd8
Replace original algorithm with a simpler one
2021-06-19 13:02:36 +01:00
Andreas Schmitt
150e502cf9
Add generation of public roads linking towns
2021-06-19 13:02:36 +01:00
Andreas Schmitt
d718ba62ef
Add option to sort tracks by category and speed ( #282 )
2021-06-17 19:08:59 +01:00
Jonathan G Rennison
24ad8759db
Viewport map: Improve handling of sloped tile rendering
2021-06-17 17:27:03 +01:00
Jonathan G Rennison
c4cb700738
Viewport map: Don't double draw north tile of bridge/tunnel
2021-06-17 17:22:50 +01:00
Jonathan G Rennison
65bd6eee11
Do not allow RV curves/reversing to override lower max speed
2021-06-17 17:17:02 +01:00
Andreas Schmitt
ec40677fdc
Add a setting to turn off road vehicle slowdown in curves
...
Prior to this change, road vehicles would always slowdown in curves. This forces the player to build grid like roads. With new height levels and more mountainous maps and in the absense of diagonal roads this causes unnecessary pain. It should be an option to turn this off, so mountainous maps and curvy roads are not punishing the player unnecessarily. Nobody wants to build grid like roads outside of towns.
2021-06-17 17:10:26 +01:00
Andreas Schmitt
7555da1642
Move subsettings always to the top of parent setting ( #279 )
2021-06-17 17:08:49 +01:00
Jonathan G Rennison
1e64ee4f6b
Disable town noise limits in indifferent town tolerance mode
...
Instead of setting noise limit to 0
2021-06-16 21:03:51 +01:00
Jonathan G Rennison
af89056824
Don't show demolish confirm dialog when shift pressed
2021-06-15 19:40:24 +01:00
Jonathan G Rennison
0b80461cd4
Merge branch 'pr-270' into jgrpp
...
# Conflicts:
# src/lang/english.txt
# src/settings_type.h
# src/table/settings.ini
2021-06-15 19:32:54 +01:00
Jonathan G Rennison
f042ca7f63
Add scope info logging to command change settings
2021-06-15 18:57:57 +01:00
Jonathan G Rennison
eeece0928c
Include setting name in command log for setting change commands
2021-06-15 18:52:40 +01:00
Jonathan G Rennison
696fb746b7
Add setting for demolition confirmation mode
2021-06-15 18:46:12 +01:00
Jonathan G Rennison
a8ce0ac787
Fix crash when clearing tunnel where only near end is reserved with realistic braking
2021-06-15 18:26:39 +01:00
Jonathan G Rennison
a49d91fa39
Use CommandContainer for demolish area callback state storage
2021-06-15 14:33:44 +01:00
SamuXarick
d0bcb9839a
Fix: you could join an AI company in multiplayer via the GUI ( #9369 )
2021-06-15 14:00:50 +02:00
Rubidium
d31a535c87
Cleanup: remove some unneeded c_str() calls
2021-06-15 06:13:00 +02:00
rubidium42
05005dcdfa
Codechange: [Network] Use std::string instead of char[] for the name of the file that is downloading
2021-06-15 06:13:00 +02:00
rubidium42
981cd0197a
Codechange: [Network] Use std::string for the client name in the network server
2021-06-15 06:13:00 +02:00
rubidium42
a8b3afb236
Codechange: [Network] Use string_view for network compatability check
2021-06-15 06:13:00 +02:00
rubidium42
49dcf0c772
Codechange: [Network] Simplify constructing the HTTP request with fmt
2021-06-15 06:13:00 +02:00
rubidium42
53b4786037
Codechange: [Network] Let NetworkError return its std::string instead of a C-string
2021-06-15 06:13:00 +02:00
rubidium42
667301e3ec
Codechange: [Network] Make hostname/client IP return strings instead of a C-string
2021-06-15 06:13:00 +02:00
rubidium42
a91e29b656
Codechange: [Network] Let IsInNetmask use std::string
2021-06-15 06:13:00 +02:00
rubidium42
36705f1dc0
Codechange: [Network] Simplify formatting of network addresses to string
2021-06-15 06:13:00 +02:00
Jonathan G Rennison
3392d25aa3
Merge PR #274 into jgrpp
2021-06-15 02:01:22 +01:00
Jonathan G Rennison
1cc8053003
Add setting to control station rating tooltip detail level
...
Default to simple
2021-06-15 02:00:58 +01:00
Jonathan G Rennison
e7909b4bee
Use {PLUS_NUM} in station rating tooltip strings
2021-06-14 22:55:39 +01:00
Jonathan G Rennison
8485ed724b
Add {PLUS_NUM} string code which includes leading + for positive values
2021-06-14 22:55:26 +01:00
Jonathan G Rennison
2b8775fb4a
Avoid hard-coded percentage values in station rating tooltip strings
2021-06-14 22:52:22 +01:00
rubidium42
9e32c618f9
Fix: [Network] Determining GetNetworkRevisionString could overflow and underflow its buffer
...
Tagged releases are not affected
2021-06-14 23:05:18 +02:00
Patric Stout
7b135a8269
Codechange: use SLE_STRUCT(LIST) for Linkgraph chunks
2021-06-14 21:58:05 +02:00
Patric Stout
5cd0c65787
Codechange: move Save/Load functions of same chunk next to each other
2021-06-14 21:58:05 +02:00
Patric Stout
af3aba7a88
Codechange: use SLE_STRUCT(LIST) for GameScript chunks
2021-06-14 21:58:05 +02:00
Patric Stout
aa02bf27f6
Codechange: use as much of STNN code for STNS as possible
...
There was a lot of code duplication for no real reason. Now with
SLEG_STRUCT support, we can just re-use the code, hopefully making
it easier for future-us to make changes to this, without breaking
everything for old games.
2021-06-14 21:58:05 +02:00
Patric Stout
0bdca02bdf
Codechange: use SLE_STRUCT(LIST) for Station chunks
2021-06-14 21:58:05 +02:00
Patric Stout
af43fc3d62
Codechange: use SLE_STRUCT(LIST) for Company chunks
2021-06-14 21:58:05 +02:00
Patric Stout
0bb1d2fa8e
Codechange: use SLE_STRUCT(LIST) for Town chunks
2021-06-14 21:58:05 +02:00
Patric Stout
4e4720f217
Codechange: remove the special station/vehicle code from SaveLoad
...
With the new SLEG_STRUCT it is much easier to embed a struct
in a struct, where the sub-struct has limitations on when it is
being used.
This makes both the code easier to read (less magic) and avoids
the SaveLoad needing to know all these things about Stations
and Vehicles.
2021-06-14 21:58:05 +02:00
Patric Stout
4600d289b5
Codechange: ability to store structs and list of structs in savegames
...
The commits following this will use this new functionality.
Currently, a few places do this manually. This has as drawback that
the Save() and Load() code need to be in sync, and that any change
can result in (old) savegames no longer loading. In general, it is
annoying code to maintain.
By putting everything in a description table, and use that for
both Save() and Load(), it becomes easier to see what is going on,
and hopefully less likely for people to make mistakes.
2021-06-14 21:58:05 +02:00
translators
909f3f25bd
Update: Translations from eints
...
spanish (mexican): 9 changes by absay
portuguese (brazilian): 9 changes by Vimerum
2021-06-14 18:54:53 +00:00
Peter Nelson
7385e780ac
Cleanup: nested_array should not be accessed directly.
...
Replace accesses with GetWidget() as documented.
2021-06-14 17:49:01 +01:00
Jonathan G Rennison
2cd1740c01
Merge PR #268 into jgrpp
2021-06-14 00:53:59 +01:00
Jonathan G Rennison
fd4b5cc083
Add buttons to cargo payment graph to select x-axis
...
Save in misc settings
2021-06-14 00:52:46 +01:00
Jonathan G Rennison
f438daa0bc
Use localised units for payment graph X axis
...
Match quantities in graph title
2021-06-13 23:57:14 +01:00
Jonathan G Rennison
f786b372c0
Add function for speed unit conversion to unit values
2021-06-13 23:50:06 +01:00