Commit Graph

25981 Commits

Author SHA1 Message Date
Peter Nelson c8a4815f9c Fix #14891, a8650c6b06: Minimum sprite zoomlevel could break in some cases. (#14894)
Caused by sprite control flags not being reset when scanning available sprites.
2025-12-14 00:19:16 +05:00
Peter Nelson 9c09394a3c Fix #14889: [FluidSynth] Don't try to load a soundfont that doesn't exist. 2025-12-14 00:19:15 +05:00
Peter Nelson 090e1415ab Codechange: Auto-reformat fluidsynth.cpp. 2025-12-14 00:17:04 +05:00
dP 767cf5e86b Merge remote-tracking branch 'upstream/master' 2025-12-11 22:03:23 +05:00
dP 300f4945bf Update rev.cpp.in to 15.0-RC1 2025-12-11 22:02:58 +05:00
Peter Nelson 6e0d1935e9 Update: Backport language changes 2025-12-09 02:52:48 +05:00
Peter Nelson 95bda7f891 Update: Backport language changes 2025-12-09 02:45:09 +05:00
Tyler Trahan 2ea9f058f5 Feature: House placer mode to replace existing houses (#14469) 2025-12-08 23:19:02 +05:00
Charles Pigott f883ea3521 Fix #14863: [Script] Improve documentation for GetAPIVersion (#14877) 2025-12-08 22:30:48 +05:00
Cyprian Klimaszewski 013587262d Fix 92e895a: don't force proceed crashed trains 2025-12-08 22:30:43 +05:00
frosch c0f12b1946 Codechange: Use attribute syntax for debug_inline, so clang-format understands it. 2025-12-08 22:28:32 +05:00
Peter Nelson a3db9e7e80 Fix #14871, 80e58e751a: Possible crash when building NewGRF station under bridge. (#14872)
Triggered by reading random tile data before the tile is actually created.
2025-12-08 22:28:27 +05:00
Cyprian Klimaszewski add6521abd Doc: Update information for receiving a copy of GPL. (#14869) 2025-12-08 22:26:18 +05:00
Peter Nelson 2557cf2098 Codechange: Remove unnecessary 'core' includes. (#14867) 2025-12-08 22:24:32 +05:00
translators 5e24b12044 Update: Translations from eints
chinese (traditional): 22 changes by KogentaSan
2025-12-08 22:24:32 +05:00
Peter Nelson eab0f70eb5 Codechange: Make order load/unload flags value types. (#14861)
Order Load and Unload flags have complex logic to ensure that invalid combinations aren't used. In fact, apart from FullLoad and FullLoadAny, all mixed combinations are invalid.

Simplify logic by removing the use of bit values and treat each option as a value.
2025-12-08 22:24:28 +05:00
Cyprian Klimaszewski a8f0d5a3ad Fix #14756: Invalidate nested focus before widget container is cleared. (#14809) 2025-12-08 22:09:21 +05:00
Cyprian Klimaszewski 8978e029cf Fix #14723: Set force proceed to TFP_SIGNAL if next tile has signals. (#14724) 2025-12-08 22:09:18 +05:00
Peter Nelson ab20a16ed2 Codechange: Use enum class and EnumBitSet for various order flags. (#14783) 2025-12-08 22:09:16 +05:00
Peter Nelson c26a9827b8 Add: Automatically load fonts for missing glyphs. (#14856) 2025-12-08 21:36:55 +05:00
Rubidium eae2d6b62c Fix: always try to create at least one town 2025-12-08 21:36:49 +05:00
Rubidium c60378a0eb Fix #14802: close NewGRF inspection window when overbuilding with default station/waypoint 2025-12-08 21:36:43 +05:00
Rubidium bd09b0a76e Codefix: some coding style improvements 2025-12-08 21:36:39 +05:00
Peter Nelson 5be16a658a Change: Support side-by-side fallback FontCaches instead of hierarchical. (#13303)
The text layouter system can now support using different fonts for different glyphs, including mixing scalable and sprite glyphs.
2025-12-08 21:34:56 +05:00
Rubidium a616855649 Fix #14839, e4cf6ca0ba: do not set stacked widget height, which might not be shown 2025-12-08 21:34:53 +05:00
Peter Nelson 490578ff8e Fix: Drop down scrolling broken for mixed-height items. (#14840) 2025-12-08 21:34:51 +05:00
translators 5674dba4a5 Update: Translations from eints
chinese (simplified): 22 changes by WenSimEHRP
2025-12-08 21:34:51 +05:00
translators 4a94f05bd3 Update: Translations from eints
portuguese: 2 changes by jcteotonio
2025-12-08 21:34:51 +05:00
Tyler Trahan 516d63a36e Change: Eliminate small seas instead of ending rivers there (#14797) 2025-12-08 21:34:48 +05:00
Peter Nelson f0376fb46c Fix 25f1c97bea: Incorrect background colour in badge configuration list. (#14850)
Provide correct widget colour instead of assuming COLOUR_GREY.
2025-12-08 21:34:41 +05:00
Peter Nelson cba2d75332 Fix #14844: Use company colour remap for badges in picker window. (#14849)
(Except for houses, which are not company-owned.)
2025-12-08 21:34:38 +05:00
Jonathan G Rennison c2c2000aac Codefix: Leading newlines in Squirrel error/callstack prints (#14851) 2025-12-08 21:34:36 +05:00
translators 90dd62e035 Update: Translations from eints
portuguese: 8 changes by jcteotonio
2025-12-08 21:34:36 +05:00
Tyler Trahan b2000a361a Change: Avoid building farm fields in wetlands (#14846) 2025-12-08 21:34:30 +05:00
Tyler Trahan bd264145e5 Fix #9071: Don't consider tram tracks when growing towns (#14833) 2025-12-08 21:34:24 +05:00
mmtunligit 3d28f90311 Codechange: Use SetDisplayedPlane instead of UpdateWidgetSize to hide various buttons (#14831) 2025-12-08 21:33:48 +05:00
translators 381beac5e3 Update: Translations from eints
luxembourgish: 23 changes by phreeze83
2025-12-08 21:33:48 +05:00
Peter Nelson 5180035a89 Change: Explicitly reserve sprite group types >= 0x80. (#14836)
The NewGRF spec does not mention that sprite group `type` and the `num-ent1` fields are the same.

Reserve all unrecognised special types in case they are wanted at some point.
2025-12-08 21:33:45 +05:00
translators 1125c59de7 Update: Translations from eints
norwegian (bokmal): 17 changes by eriksorngard
portuguese: 17 changes by jcteotonio
2025-12-08 21:33:45 +05:00
Jonathan G Rennison 0985242864 Codechange: [Script] Use std::optional for script list next iteration item (#14753)
Avoids false positive updates in Remove when iterating the final item
and leftover values being returned when IsEnd is true
2025-12-08 21:33:43 +05:00
Peter Nelson 117d33cf4f Codechange: Replace drop down list's default bools with DropDownOptions. (#14837)
Improves maintainability and avoids positional ambiguity.
2025-12-08 21:32:02 +05:00
Peter Nelson 7daed8835f Fix #8062: (Try to) ensure enough room for profit in vehicle group window.
Width of group info panel previously relied entirely on the size of other widgets.
2025-12-08 21:31:59 +05:00
Peter Nelson ccd5f00ead Codechange: Precalculate group column rects.
Simplifies drawing group list which no longer needs to calculate horizontal positions for each row.
2025-12-08 21:31:56 +05:00
Peter Nelson 5d0c798a82 Codechange: Extract functions to get group name and profit sprite.
Improves readability and allows long if-else conditions to be replaced with early returns.
2025-12-08 21:31:53 +05:00
translators 5d516c96c3 Update: Translations from eints
galician: 17 changes by pvillaverde
german: 47 changes by Wuzzy2
2025-12-08 21:31:53 +05:00
translators 04ca0ab609 Update: Translations from eints
korean: 17 changes by telk5093
hungarian: 18 changes by vargaviktor
portuguese: 9 changes by jcteotonio
2025-12-08 21:31:53 +05:00
Peter Nelson 2d7a22f7f3 Codefix: Add missing consts in group handling. (#14834) 2025-12-08 21:31:50 +05:00
translators d0ba23dd15 Update: Translations from eints
english (au): 9 changes by krysclarke
swedish: 17 changes by robert-i
english (us): 17 changes by 2TallTyler
greek: 9 changes by gh658804
russian: 9 changes by Ln-Wolf
finnish: 9 changes by hpiirai
portuguese (brazilian): 9 changes by pasantoro
polish: 9 changes by pAter-exe
2025-12-08 21:31:50 +05:00
Tyler Trahan d4197bc731 Fix 509cbed: Don't give up erroneously when building lakes (#14832) 2025-12-08 21:31:48 +05:00
TheDude-gh 429b6820a7 Add: [Script] ScriptTile::IsHouseTile 2025-12-08 21:31:38 +05:00