Commit Graph

52949 Commits

Author SHA1 Message Date
Jonathan G Rennison
72e2ee882e Fix 1a38cbde7: Ship viewport hash not updated on rotation 2022-05-26 23:26:57 +01:00
Jonathan G Rennison
f0a0b2e200 VarAction2: Flatten constant operations on constants in more cases 2022-05-26 22:31:02 +01:00
Jonathan G Rennison
2360b3e93e VarAction2: Detect and replace scaled reads of train/RV/ship current speed 2022-05-26 21:31:20 +01:00
Jonathan G Rennison
730b84e262 Fix load check of a savegame with realistic braking enabled triggering signal checks on current game 2022-05-26 01:13:46 +01:00
Jonathan G Rennison
13cdef2a2d VarAction2: Remove redundant and with 1 when value is already bool 2022-05-26 00:36:19 +01:00
Jonathan G Rennison
2f09eff404 VarAction2: Convert boolean, invert sequence to ternary 2022-05-26 00:12:54 +01:00
Jonathan G Rennison
90a2aa57fc VarAction2: Detect and replace signed relational comparisons 2022-05-25 23:58:44 +01:00
Jonathan G Rennison
e732042785 VarAction2: Remove redundant constant loads 2022-05-25 22:50:10 +01:00
Jonathan G Rennison
74e1a40f7c VarAction2: Remove trivially resolvable deterministic sprite groups 2022-05-25 20:29:18 +01:00
Jonathan G Rennison
3b5eede3fc VarAction2: Detect and replace operations which always produce 0 2022-05-25 20:04:36 +01:00
Jonathan G Rennison
a21ae12c90 VarAction2: Remove redundant temp store loads after stores 2022-05-25 19:17:15 +01:00
Jonathan G Rennison
db5be4f92e VarAction2: Remove constant parameter redirection via variable 7B 2022-05-25 04:12:44 +01:00
Jonathan G Rennison
08b83352bf Fix truncation of variable mapping A2VM->VPRM params wider than 8 bits
And remapped variables via variable 7B
2022-05-25 04:02:12 +01:00
Jonathan G Rennison
da629e4cfa VarAction2: Replace divs of powers of 2 with shifts where possible 2022-05-25 03:49:29 +01:00
Jonathan G Rennison
fad5973161 VarAction2: Reduce shift right and mask ops into adjust shift/mask 2022-05-25 02:53:35 +01:00
Jonathan G Rennison
012d73ef34 VarAction2: Detect equality comparisons
Remove redundant equality with 0 comparison before ternary
2022-05-25 02:23:25 +01:00
Jonathan G Rennison
7283825638 VarAction2: Detect and replace ternary operator pattern 2022-05-25 01:52:22 +01:00
Jonathan G Rennison
e3df522111 VarAction2: Delete provably zero adjustment operations 2022-05-24 23:40:29 +01:00
Jonathan G Rennison
502980ba61 Support railtype-dependant GRF train speed limits with realistic braking
See: #389
2022-05-24 21:50:38 +01:00
Jonathan G Rennison
aeac77e012 Fix engine callbacks not being analysed in newly generated games 2022-05-24 20:19:04 +01:00
Jonathan G Rennison
1a38cbde74 Fix ships not always updating in viewport map mode
Adjust sprite_seq_bounds to plausible value matching current rotation
to fix viewport update region missing vehicle tile
2022-05-23 19:17:42 +01:00
Jonathan G Rennison
cf3ea7b6af Debug: Include x_offs/y_offs in vehicle debug window 2022-05-23 19:16:19 +01:00
Jonathan G Rennison
0ac96a0da3 Show vehicle inspect window when ctrl-shift clicking in group list window 2022-05-23 19:15:57 +01:00
Jonathan G Rennison
6107aa9e5c Render an overlay of the measurement tool area in viewport map mode
See: #388
2022-05-19 00:18:07 +01:00
Jonathan G Rennison
981104e308 Add a functor fill mode to GfxFillPolygon 2022-05-19 00:12:17 +01:00
Jonathan G Rennison
9fddfdeccf Fix viewport map scrolling box blend over vehicles on animated blitters 2022-05-19 00:10:02 +01:00
Jonathan G Rennison
a9caeaa7f1 Fix viewport map scrolling box blend on emscripten 2022-05-19 00:09:14 +01:00
Jonathan G Rennison
b92ae644c4 Add a Blitter::SetPixel32 function 2022-05-19 00:08:15 +01:00
Jonathan G Rennison
b464c589af Reduce blitter MoveTo calls when drawing viewport map scrolling box blend 2022-05-19 00:07:09 +01:00
Jonathan G Rennison
16259e9619 Allow measurement tool in viewport map mode
See: #388
2022-05-18 18:49:38 +01:00
Jonathan G Rennison
4991309018 Fix timetable autofill activation when scheduled dispatch is active 2022-05-17 20:31:21 +01:00
Jonathan G Rennison
ad47275d53 Disabling timetable automation without ctrl no longer clears timetable 2022-05-17 19:41:11 +01:00
Jonathan G Rennison
5b7db9d849 Merge branch 'master' into jgrpp
# Conflicts:
#	.github/workflows/ci-build.yml
#	.github/workflows/commit-checker.yml
#	src/command.cpp
#	src/company_cmd.cpp
#	src/company_gui.cpp
#	src/crashlog.cpp
#	src/economy.cpp
#	src/lang/english.txt
#	src/lang/german.txt
#	src/lang/korean.txt
#	src/misc_gui.cpp
#	src/newgrf_config.cpp
#	src/openttd.cpp
#	src/settings_gui.cpp
#	src/ship_cmd.cpp
#	src/table/settings/gui_settings.ini
2022-05-15 13:54:13 +01:00
translators
adc76cca54 Update: Translations from eints
catalan: 2 changes by J0anJosep
2022-05-14 18:48:27 +00:00
Frazer Smith
9bdc1e8f04 Update: bump peter-evans/repository-dispatch from 1 to 2 2022-05-14 16:58:10 +02:00
Frazer Smith
19b838dd60 Update: bump actions/download-artifact from 2 to 3 2022-05-14 16:58:10 +02:00
Frazer Smith
9162ac9d37 Update: bump actions/checkout from 2 to 3 2022-05-14 16:58:10 +02:00
Frazer Smith
2a2f80bb71 Update: bump actions/cache from 2 to 3 2022-05-14 16:58:10 +02:00
Frazer Smith
33dabc42bb Update: bump actions/upload-artifact from 2 to 3 2022-05-14 16:58:10 +02:00
benda
6540948ace
Fix: Company values do not properly account for shares (#9770)
Co-authored-by: Charles Pigott <charlespigott@googlemail.com>
2022-05-14 16:57:47 +02:00
Tyler Trahan
fa562ba041
Fix #9712: Cap town bridge length at original 11-tile limit (#9890) 2022-05-14 16:55:39 +02:00
Tyler Trahan
37d318c410 Fix #9870: Don't update infrastructure totals when overbuilding object on canal 2022-05-14 16:54:36 +02:00
translators
24d7697acc Update: Translations from eints
spanish: 1 change by frosch123
2022-05-14 12:03:15 +00:00
translators
1eed52f294 Update: Translations from eints
swedish: 7 changes by translators
norwegian (bokmal): 1 change by translators
spanish (mexican): 41 changes by translators
japanese: 28 changes by translators
english (us): 4 changes by translators
vietnamese: 7 changes by translators
estonian: 60 changes by translators
korean: 9 changes by translators
greek: 4 changes by translators
hungarian: 2 changes by translators
indonesian: 5 changes by translators
italian: 12 changes by translators, 1 change by Rivarossi
german: 33 changes by translators
romanian: 11 changes by translators
russian: 4 changes by translators
finnish: 2 changes by translators
ukrainian: 5 changes by translators
slovak: 9 changes by translators
catalan: 14 changes by translators
turkish: 1 change by translators
danish: 1 change by translators
latvian: 5 changes by translators
dutch: 5 changes by translators
spanish: 98 changes by translators
portuguese: 6 changes by translators
portuguese (brazilian): 2 changes by translators, 1 change by marlondantas
polish: 13 changes by translators
2022-05-14 11:39:04 +00:00
translators
84aec4fcb8 Update: Translations from eints
english (us): 2 changes by 2TallTyler
italian: 2 changes by Rivarossi
russian: 5 changes by Ln-Wolf
dutch: 2 changes by Afoklala
french: 25 changes by glx22
portuguese: 2 changes by azulcosta
2022-05-13 18:49:07 +00:00
Tyler Trahan
ebc76a4200 Change: Use an indent, not a dash, to list train capacity 2022-05-12 16:59:52 +02:00
Jonathan G Rennison
dd40fa32df Fix excessive recursion in link graph refresher with conditional order loops 2022-05-12 00:58:31 +01:00
translators
646d160c38 Update: Translations from eints
italian: 3 changes by Rivarossi
2022-05-11 21:23:39 +00:00
translators
273b33b087 Update: Translations from eints
swedish: 5 changes by joeax910
2022-05-11 18:48:28 +00:00
Blinnikov Pavel
c8043f6e00 Update sqbaselib.cpp
(cherry picked from commit 43a4b138a504c0464e6a7bb7b87ac2a90968b0aa)
2022-05-11 17:42:30 +01:00