Rubidium and rubidium42
4c2d4ec73e
Codechange: rename InitializeRailGUI to InitializeSignalGui
2026-06-03 07:20:55 +02:00
Rubidium and rubidium42
a8606613a4
Codechange: use single path for calling SetDefaultRailGui
2026-06-03 07:20:55 +02:00
Rubidium and rubidium42
55be58a31d
Codefix: do not update just closed construction toolbar when changing company
2026-06-03 07:20:55 +02:00
Rubidium and rubidium42
8bac7bd519
Codechange: make SwitchMode a scoped enum
2026-05-31 07:22:11 +02:00
Rubidium and rubidium42
2ff631caa2
Codechange: make GameMode a scoped enum
2026-05-30 23:20:20 +02:00
Peter Nelson and GitHub
fce33c5015
Codechange: make WarningLevel a scoped enum ( #15622 )
2026-05-26 17:12:21 +01:00
Rubidium and rubidium42
bcda4a72ee
Codechange: make WindowClass a scoped enum
2026-05-20 21:39:04 +02:00
Peter Nelson and GitHub
e7845e48dc
Codechange: make DisplayOption a scoped enum/enum bitset ( #15611 )
2026-05-19 06:21:38 +01:00
Peter Nelson and Peter Nelson
2868060660
Codechange: make LiveryScheme a scoped enum
2026-05-18 20:05:19 +01:00
Peter Nelson and Peter Nelson
7d70a7b9e9
Codechange: add LiverySchemes as EnumBitSet
2026-05-18 20:05:19 +01:00
Peter Nelson and GitHub
30fbc0aab8
Codechange: make SaveLoadResult a scoped enum ( #15584 )
2026-05-04 22:58:43 +01:00
Peter Nelson and GitHub
4a7cbf29f0
Codechange: prefer AutoRestoreBackup over Backup/Restore ( #15480 )
2026-04-27 08:02:41 +01:00
Rubidium and rubidium42
53799cc39a
Codechange: make Support8bpp a scoped enum
2026-04-24 22:35:31 +02:00
Rubidium and rubidium42
3b5d46e0bb
Codechange: make Colours a scoped enum
2026-04-19 20:53:52 +02:00
Peter Nelson and Peter Nelson
5aae8e2d64
Codechange: make Subdirectory a scoped enum
2026-04-05 21:46:07 +01:00
Peter Nelson and Peter Nelson
93a6aa77c6
Codechange: make SaveLoadOperation a scoped enum
2026-04-05 21:46:07 +01:00
Peter Nelson and Peter Nelson
04f7adb7b7
Codechange: make DetailedFileType a scoped enum
2026-04-05 21:46:07 +01:00
Peter Nelson and Peter Nelson
74b0b080e7
Codechange: make AbstractFileType a scoped enum
2026-04-05 21:46:07 +01:00
Peter Nelson and Peter Nelson
7c7f74c551
Codechange: use enum class for Driver::Type enum
2026-02-18 10:57:28 +00:00
Rubidium and rubidium42
23dcc9dd07
Codechange: document parameters and return types
2026-02-17 23:11:27 +01:00
Rubidium and rubidium42
0b3c448ea1
Codechange: move documentation to declaration, when there are multiple implementations
2026-02-16 16:35:19 +01:00
Rubidium and rubidium42
c6c06e13eb
Codefix: wrong parameter names and partially missing parameters
2026-02-02 16:31:46 +01:00
Rubidium and rubidium42
03c24810b1
Codechange: use scoped enums for timer enumerations, rename one enum
2026-01-29 12:42:27 +01:00
Rubidium and rubidium42
4adf494ebc
Codechange: enum-class-ify Commands
2026-01-28 23:32:51 +01:00
Rubidium and rubidium42
c49f1da09e
Codefix: incorrect naming of enum class members
2026-01-11 22:57:38 +01:00
Tyler Trahan and GitHub
18f2f7eb2d
Codechange: Use enum class for setting values ( #15074 )
2026-01-10 22:40:48 +00:00
Cyprian Klimaszewski and GitHub
99f04f27de
Doc: Update information for receiving a copy of GPL. ( #14869 )
2025-12-07 11:25:08 +00:00
Peter Nelson and Peter Nelson
c3451b5d97
Codechange: Replace color with colour.
2025-11-18 00:02:48 +00:00
Peter Nelson and GitHub
8e055156e3
Codefix: Make sure safeguards.h is the last included non-table header. ( #14687 )
2025-10-11 10:22:50 +01:00
merni-ns and rubidium42
e1b404089c
Fix #13307 : Return non-zero value when there is a mistake in command-line arguments
...
Specifically, when the savegame passed to -q cannot be read or when non-existent/invalid options are passed
2025-08-07 23:28:57 +02:00
Peter Nelson and Peter Nelson
140f2b291a
Codechange: Use ProviderManager interface to register FontCache factories.
...
This removes use of #ifdefs to select the appropriate loader, and also replaces FontCache self-registration.
2025-08-07 19:38:00 +01:00
Peter Nelson and GitHub
0dc40877fd
Codechange: Initialise/reset font cache with FontSizes bitset. ( #14448 )
...
Instead of choosing either "Normal/Small/Large" or "Monospace", use an EnumBitSet to allow any combination.
2025-07-18 18:23:28 +01:00
Peter Nelson and GitHub
156f98ba06
Fix #14256 , dfd9fbf873: Company finance windows not updated when paused. ( #14258 )
...
Refresh company finance windows via a WindowTimer instead of in game loop.
As the invalidation affects multiple windows this is a global timer instead of window-specific.
2025-05-13 01:23:27 +01:00
Peter Nelson and Peter Nelson
9735fbbaa1
Codechange: Use LRUCache for layouted LineCache.
...
This avoids needing to manually manage the size of the cache.
2025-05-06 18:09:00 +01:00
frosch and frosch
8571af9833
Codechange: Turn ZoomLevel into enum class.
2025-05-03 23:21:09 +02:00
Rubidium and rubidium42
fbe80f31fe
Codechange: replace char* in GetOptData with std::string_view
2025-04-30 23:49:06 +02:00
Rubidium and rubidium42
855377191e
Codechange: replace some more char*s with std::string_view
2025-04-30 23:49:06 +02:00
frosch and frosch
36ce1f890a
Codechange: Remove c_str, if std::string_view is already accepted.
2025-04-30 19:33:56 +02:00
Rubidium and rubidium42
708e6a512d
Codechange: replace char* with C++ style strings
2025-04-30 12:05:04 +02:00
Rubidium and rubidium42
f4ad614285
Codechange: use std::string_view for FS2OTTD and OTTD2FS
2025-04-29 22:33:32 +02:00
frosch and frosch
fda93b6f35
Codechange: Add format_append as short-hand to format_to + back_inserter.
2025-04-29 20:26:23 +02:00
frosch and frosch
98481ecc01
Codechange: Replace strtol, strtoll, stroul and strtoull with ParseInteger.
2025-04-29 20:14:56 +02:00
frosch and frosch
cdafc50c94
Codechange: Replace atoi and atoll with ParseInteger.
2025-04-29 20:14:56 +02:00
frosch and frosch
79b2202f2e
Codechange: Use StringConsumer for parsing more strings.
2025-04-29 20:14:56 +02:00
Peter Nelson and GitHub
dfd9fbf873
Codechange: Defer refreshing company finance windows. ( #14111 )
...
During each game tick every cargo payment will issue an Invalidate of the status bar and company finance window. While this doesn't paint the window yet, it does need to search for open windows, and then mark a area of dirty blocks, which is done for every Invalidate.
Instead, set a bit in a CompanyMask, and test these bits once after the game tick is complete.
This reduces the amount of dirtying, and allows more specific widgets to be dirtied instead of the whole window.
2025-04-26 10:50:51 +00:00
frosch and GitHub
26db4ccf09
Codechange: Turn bit-stuffed FiosType enum into a struct. ( #14019 )
2025-04-18 15:20:55 +02:00
SamuXarick and GitHub
4310d7c7f5
Fix: [Script] Only run the Game::GameLoop() in-game ( #13896 )
2025-04-04 17:29:48 +02:00
Peter Nelson and Peter Nelson
6914d99778
Codechange: Split baseset type definitions into separate files.
2025-03-27 18:57:53 +00:00
Peter Nelson and Peter Nelson
422ff9dbd8
Codechange: Use std::unique_ptr for ai/game config.
2025-03-26 10:54:11 +00:00
Peter Nelson and Peter Nelson
2909a14374
Codechange: Include table/strings.h in files that use StringIDs.
...
Be consistent with how and where the file is incldued.
2025-03-21 12:53:40 +00:00