Tyler Trahan
df03d60258
Fix: Add missing includes to timers from script implementation files
2023-12-15 16:47:47 -05:00
Tyler Trahan
b959be98a3
Codechange: Split calls to ScriptDate into correct Calendar and Economy class
2023-12-15 16:47:47 -05:00
Tyler Trahan
f9d04e9358
Codechange: Split ScriptDate file into Calendar and Economy files
2023-12-15 16:47:17 -05:00
Tyler Trahan
fc01bb5024
Codechange: LogCommandExecution writes economy date, not calendar date
...
Outside of Real-Time Mode, these are the same date, so debugging date-based events is still possible.
2023-12-15 09:19:22 -05:00
Tyler Trahan
c88a2816eb
Doc: Clarify in economy and calendar timer files the usecases for each
2023-12-14 20:30:01 -05:00
Tyler Trahan
5cb483a62b
Codechange: Sync calendar and economy dates when loading NewGRFs
2023-12-14 20:30:01 -05:00
Tyler Trahan
6c95929831
Codechange: Use economy dates for linkgraphs
2023-12-14 20:30:01 -05:00
Tyler Trahan
b08e2e0527
Codechange: Use ecomomy dates for timetables
2023-12-14 20:30:01 -05:00
Tyler Trahan
02302a9fe9
Codechange: Use economy dates for subsidy date displays
2023-12-14 20:30:01 -05:00
Tyler Trahan
7ab048195d
Codechange: Use economy dates for vehicle service dates
2023-12-14 20:30:01 -05:00
Tyler Trahan
89eedf49aa
Codechange: Use economy dates when drawing graphs
2023-12-14 20:30:01 -05:00
Tyler Trahan
1e98680bf6
Codechange: Track the company age in economy years
2023-12-14 20:30:01 -05:00
Tyler Trahan
fc77d6d094
Codechange: Use economy dates to clean up old news items
2023-12-14 20:30:01 -05:00
Tyler Trahan
ee5868f4b4
Codechange: Use economy dates for economy statistics and interest payments
2023-12-14 20:30:00 -05:00
Tyler Trahan
8601dd5a4f
Codechange: Use economy dates for industry production changes and closures
2023-12-14 20:30:00 -05:00
Tyler Trahan
c8468812d6
Codechange: Use economy dates for desync savegame interval
2023-12-14 20:30:00 -05:00
Tyler Trahan
feacf0c2fc
Codechange: Split daily/monthly/yearly timers into economy and calendar timers
2023-12-14 20:30:00 -05:00
Tyler Trahan
31352caba1
Codechange: Update both calendar and economy dates when changing date in Scenario Editor
2023-12-14 20:30:00 -05:00
Tyler Trahan
308175d35a
Codechange: Sync economy and calendar dates when using date cheat
2023-12-14 20:30:00 -05:00
Tyler Trahan
0a12ba9584
Codechange: Sync economy and calendar dates when starting a new game
2023-12-14 20:30:00 -05:00
Tyler Trahan
fd20ada1f9
Codechange: Sync economy and calendar dates when loading old saves
2023-12-14 20:30:00 -05:00
Tyler Trahan
50cd213602
Codechange: Add economy date timer and variables
2023-12-14 20:30:00 -05:00
Tyler Trahan
5b338623db
Codechange: Move TimerGameCalendar functions to a parent TimerGameCommon class
2023-12-14 20:30:00 -05:00
302e8852c1
Fix: Crash if squirrel compatibility scripts cannot be parsed. ( #11589 )
2023-12-15 01:25:36 +00:00
Loïc Guilloux
7726f8f245
Fix: [Script] Properly store the previous AsyncMode state ( #11587 )
2023-12-14 21:29:44 +00:00
bbf3028f89
Fix #11585 : Crash when cleaning AI/GS with nested AsyncMode.
...
Do not throw sanity check when in_shutdown is true. This is also applied to
ExecMode and TestMode as they follow the same pattern.
2023-12-14 20:54:31 +00:00
47dd04d16c
Fix: Don't crash when saving a crashlog save with no main window open.
2023-12-14 20:54:31 +00:00
da2d21f5b0
Fix: Left-over printf-style format passed to fmt. ( #11584 )
2023-12-14 19:35:35 +00:00
translators
63c006a174
Update: Translations from eints
...
korean: 20 changes by telk5093
danish: 13 changes by bscargo
portuguese (brazilian): 18 changes by pasantoro
2023-12-14 18:38:27 +00:00
Jonathan G Rennison
97b86b7147
Codechange: Use MakeParameters with GetNextParameter in FormatString ( #11583 )
...
Instead of StringParameters subspan, to avoid GSs being able to
cause subspan boundary assertion failures
2023-12-14 10:41:31 -05:00
12bb750128
Codechange: Cargo filters no longer take an index. ( #11582 )
...
Update naming of functions to reflect that parameter is now a cargoid.
2023-12-14 01:48:45 +00:00
d6515d6c98
Fix 0a8bcdd
: Scaling non-sprite fonts does not depend on _font_zoom changing. ( #11579 )
2023-12-13 19:51:44 +00:00
translators
8e05001001
Update: Translations from eints
...
english (au): 18 changes by krysclarke
russian: 18 changes by Ln-Wolf
2023-12-13 18:38:37 +00:00
6c5aeae01b
Fix #11577 : Extra viewport opened in wrong location. ( #11578 )
...
ExtraViewportWindow calls IninitializeViewport() with focus as 0, which is ambiguous as focus should be either a TileIndex or a VehicleID.
Instead, pass the tile and let InitializeViewport() handle setting all the coordinates.
2023-12-13 02:19:16 +00:00
0a8bcdd344
Change: Be selective about clearing sprite/font caches on interface scale change. ( #11576 )
...
Sprite cache contains all zoom levels anyway, so does not need to be reloaded.
Font cache does not need to be clear if the font zoom hasn't changed, i.e. when changing the max sprite zoom level setting.
2023-12-11 21:03:54 +00:00
translators
b62fafc5d4
Update: Translations from eints
...
english (au): 1 change by krysclarke
italian: 1 change by Rivarossi
german: 7 changes by SecretIdetity
russian: 1 change by Ln-Wolf
danish: 1 change by bscargo
french: 1 change by glx22
2023-12-11 18:39:36 +00:00
dc27f1649a
Fix e2425b7
: Sprites no longer refreshed if max zoom level changed.
...
Handle this via AdjustGUIZoom() instead.
2023-12-11 14:16:49 +00:00
162ffc288d
Fix e2425b7
: WidgetDimensions and depot sizes not set up if blitter forced.
...
Set up WidgetDimensions and depot sizes during InitWindowSystem().
2023-12-11 14:16:49 +00:00
Tyler Trahan
2bada59193
Feature: Mode to display timetable in seconds
2023-12-11 07:12:45 -05:00
Tyler Trahan
2a62caa30b
Codechange: Use Ticks for BaseConsist timetable fields
2023-12-11 07:12:45 -05:00
Tyler Trahan
051abb2fad
Change: Don't show scoring year in high score table ( #11546 )
2023-12-10 18:05:51 -05:00
6e8c27b8e5
Change: Hide bevel for resizeable sparse layout windows. ( #11572 )
...
When clicked, the button is still highlighted to show that it is active.
The bevel is controlled with widget_data by RWV_SHOW_BEVEL or RWV_HIDE_BEVEL values.
2023-12-10 17:25:36 +00:00
SamuXarick
a3d56e2c6e
Fix: Prevent overflow when calculating max town noise ( #11564 )
...
Max town noise could overflow if the population was high enough. The value is now clamped.
2023-12-10 15:42:55 +00:00
09251d993c
Change: Use sparse padding for network server list. ( #11571 )
2023-12-10 14:48:58 +00:00
102fc6a9d1
Cleanup: iif should be iff (if-and-only-if) ( #11570 )
2023-12-10 12:05:28 +00:00
8186182e4c
Codechange: Set displayed plane earlier to avoid ReInit.
2023-12-10 12:01:55 +00:00
fb60f8f2f5
Codechange: Simplify BuildRailStationWindow initialization.
2023-12-10 12:01:55 +00:00
66b064cbad
Codechange: Use return value of SetDisplayedPlane to simplify CompanyWindow.
2023-12-10 12:01:55 +00:00
ebf299e1b4
Codechange: Make SetDisplayedPlane return whether the plane changed or not.
2023-12-10 12:01:55 +00:00
d6060a4d47
Change: Use sparse padding for start network server window. ( #11569 )
2023-12-09 23:35:46 +00:00