Jonathan G Rennison
158608442c
Merge pull request #281 from VacuumBreather/train_speed_adaptation
...
# Conflicts:
# src/saveload/extended_ver_sl.cpp
# src/saveload/extended_ver_sl.h
2021-07-03 23:00:25 +01:00
Jonathan G Rennison
9edc13b889
Make sure setting set correctly on loading existing saves
2021-07-03 22:56:17 +01:00
Jonathan G Rennison
0f73fe765f
Merge pull request #293 from VacuumBreather/station_cargo_history
...
Add station cargo history
2021-06-29 19:53:18 +01:00
Jonathan G Rennison
b438380a1e
Add station cargo history save/load support
2021-06-29 19:37:20 +01:00
Jonathan G Rennison
5698507d0b
Change station cargo history storage format
...
Use uint16 to avoid truncation issues
Don't reserve memory for unused cargoes
Store history as ring buffer
Update history graph immediately on storage date
Show total waiting cargo
2021-06-29 19:37:20 +01: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
4d0cda12bd
Fix saving one byte at a time in Save_SPRG
2021-06-27 04:12:27 +01:00
Andreas Schmitt
9b1783809d
Add station cargo history
2021-06-23 08:48:46 +02:00
Andreas Schmitt
e1214a6d8b
Fix some type conversion warnings
2021-06-21 09:10:40 +02:00
Jonathan G Rennison
3e66ffead0
Saveload: Allow threaded saves in network server mode
2021-06-20 10:20:10 +01:00
Jonathan G Rennison
87948d8029
Thread: Adjust checks for whether current thread is the game thread
2021-06-20 10:00:36 +01:00
Jonathan G Rennison
1002c6d9d2
Fix various compiler warnings
...
See: #267
2021-06-11 22:54:27 +01:00
Jonathan G Rennison
0579c8755c
Add tracerestrict action: No PBS signal back PF penalty
2021-05-25 18:50:36 +01:00
Jonathan G Rennison
6d3a1935a0
Fix "(undefined string)" message when SlError called when saving
2021-05-21 02:05:18 +01:00
Jonathan G Rennison
3ecda2b735
Fix handling of SlError when called from game thread
2021-05-20 20:20:45 +01:00
Jonathan G Rennison
a15e26f369
NewGRF: Elide unmasked vehicle callbacks where possible
...
This includes:
* CBID_VEHICLE_32DAY_CALLBACK
* CBID_VEHICLE_REFIT_COST
* CBID_VEHICLE_MODIFY_PROPERTY
This is on a per-property basis
The main benefit of this is to avoid callbacks not handled by the
vehicle's current sprite group from using the full graphics chain as
the "default" branch in the callback switch.
In the case where the graphics chain is long/expensive, a lot of work
had to be done before a callback failure result was eventually returned.
2021-05-18 19:07:44 +01:00
PeterN
66cac92028
Fix #9202 : Invalid test for unset NewGRF override mapping. ( #9226 )
...
(cherry picked from commit 3d9436bd75
)
2021-05-14 18:33:19 +01:00
PeterN
f52da3de3a
Codechange: Don't save unused NewGRF override mappings. ( #9202 )
...
(cherry picked from commit 69e5da0b54
)
2021-05-14 18:15:17 +01:00
William Davis
879de9781b
Change: Use gender-neutral pronouns in console command messages (and comments) ( #9203 )
...
(cherry picked from commit 881e1da51d
)
2021-05-14 18:15:00 +01:00
Jonathan G Rennison
2e28bc8e6a
Tracerestrict: Add engine class conditional
2021-05-13 23:49:03 +01:00
glx22
8333323090
Codechange: Replace FOR_ALL_ROADTRAMTYPES with range-based for loops
...
(cherry picked from commit 2feb801e56
)
2021-05-06 21:21:41 +01:00
PeterN
43fe7463ba
Fix: Update text effect size when font zoom is changed. ( #9174 )
...
(cherry picked from commit 18651dd8b1
)
2021-05-06 20:52:00 +01:00
Loïc Guilloux
88bc7bd235
Fix: [MinGW] Set minimum OS version to Windows XP ( #9135 )
...
(cherry picked from commit 356bbbb90a
)
2021-05-06 18:25:28 +01:00
Jonathan G Rennison
95ca147445
Add cheat: town local authority ratings fixed as Outstanding
2021-05-05 01:17:54 +01:00
Jonathan G Rennison
a9515456cb
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/network/core/os_abstraction.h
# src/network/core/tcp_content.h
# src/network/core/udp.cpp
# src/table/currency_settings.ini
# src/table/settings.h.preamble
2021-05-03 21:59:49 +01:00
Jonathan G Rennison
253772e9af
Merge branch 'master' into jgrpp
...
# Conflicts:
# CMakeLists.txt
# COMPILING.md
# src/console.cpp
# src/console_cmds.cpp
# src/console_internal.h
# src/rev.cpp.in
2021-04-25 02:14:58 +01:00
Jonathan G Rennison
ba418f9d0d
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/lang/simplified_chinese.txt
# src/network/core/tcp_content.cpp
# src/network/core/udp.cpp
# src/network/network_server.cpp
# src/saveload/linkgraph_sl.cpp
# src/table/gameopt_settings.ini
2021-04-25 01:23:52 +01:00
peter1138
a05bc04b63
Feature: Per-group wagon removal flag.
2021-04-22 22:57:00 +02:00
peter1138
27a956ba62
Codechange: Replace Group::replace_protection with Group::flags
2021-04-22 22:57:00 +02:00
Jonathan G Rennison
14636d2512
Check multi-tile ID-translated houses after house ID limit change
...
(Or when reloading NewGRFs)
If an overriding house type which newly fit in the limit changed the
tile layout, existing houses on the map could have the wrong layout
See: #243
2021-04-19 23:04:54 +01:00
Jonathan G Rennison
6a3e87114a
Add a min_version parameter to SlXvIsFeatureMissing
2021-04-19 22:51:28 +01:00
Milek7
aade177d79
Fix: Corrupted savegame could cause heap corruption by writing outside link graph edge matrix. ( #9046 )
2021-04-17 19:19:37 +01:00
Milek7
da55286c2c
Fix: Corrupted savegame could crash the game by providing invalid gamelog enums. ( #9045 )
2021-04-17 19:19:18 +01:00
Jonathan G Rennison
b514d29db1
Replace TrainCache::cached_tilt with a flags field
2021-04-15 20:56:45 +01:00
Jonathan G Rennison
cb5c6902db
Fix order dest refcount mismatch warning when loading very old savegames
2021-04-14 20:01:37 +01:00
Jonathan G Rennison
9e3ac646fa
Fix desync warning messages when loading game with non-matching train braking model
2021-04-14 19:56:38 +01:00
Jonathan G Rennison
e623560120
Fix 4c2e42fa
: Wrong town caches when loading pre more-houses savegame
2021-04-14 19:49:35 +01:00
Jonathan G Rennison
7faa279250
Fix 26a123b7
: Wrong variable size in VENC chunk saver
2021-04-14 19:36:10 +01:00
Jonathan G Rennison
6c62bce1ac
Bump water flooding savegame version and clear states on load
2021-04-13 00:08:05 +01:00
Jonathan G Rennison
737b538492
Bump savegame version, copy town to city multipliers for old savegames
2021-04-12 20:08:05 +01:00
Jonathan G Rennison
d7b23733b3
Bump realistic braking savegame version
2021-04-11 23:45:00 +01:00
Jonathan G Rennison
5d88030feb
Merge pull request #238 from reldred/newhouses_limits_tweaks
...
Extra House IDs
2021-04-11 14:18:23 +01:00
Jonathan G Rennison
4c2e42fae0
Add savegame conversion and version bump for more house IDs
2021-04-11 12:32:13 +01:00
Jonathan G Rennison
f1cab62140
Add cheat to fix station ratings at 100%
2021-04-11 04:00:17 +01:00
Jonathan G Rennison
f39b6f4ba3
Merge branch 'master' into jgrpp
...
# Conflicts:
# src/cheat_gui.cpp
# src/genworld_gui.cpp
# src/landscape.cpp
# src/lang/english.txt
# src/saveload/afterload.cpp
# src/screenshot.cpp
# src/settings_gui.cpp
# src/settings_internal.h
# src/settings_type.h
# src/table/settings.ini
# src/tile_type.h
# src/widgets/genworld_widget.h
2021-04-10 18:29:36 +01:00
Jonathan G Rennison
5e14b54a0c
Merge branch 'master' into jgrpp
2021-04-05 17:51:45 +01:00
Jonathan G Rennison
26a123b708
Realistic braking: Cache offset of centre of mass of train
2021-04-03 21:25:04 +01:00
Jonathan G Rennison
912c62d749
Add timetable lateness/earliness conditional order
2021-03-27 23:19:19 +00:00
Patric Stout
13a5264438
Fix: store the recent new game_creation settings in savegames
...
This allows us to later on see what someone did, and makes sure
that "restart" command still knows how the game was created.
2021-03-26 12:22:32 +01:00