1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 04:29:09 +00:00

Commit Graph

  • 66c16a1d1f Codechange: Add Count() method to BaseBitSet. Peter Nelson 2025-05-13 20:09:26 +01:00
  • ecc3438519 Update: Translations from eints translators 2025-05-14 04:46:05 +00:00
  • c16d5f3a8d Change: [Script] ScriptVehicleList_Station accepts an optional VehicleType parameter (#14260) Loïc Guilloux 2025-05-13 16:41:23 +02:00
  • 87fa1e41d5 Codechange: Use std::byte for sound buffers. Peter Nelson 2025-05-13 01:08:07 +01:00
  • 5585363407 Codechange: Use std::byte for glyph sprite buffer. Peter Nelson 2025-05-13 00:48:05 +01:00
  • c718858999 Update: Translations from eints translators 2025-05-13 04:47:36 +00:00
  • 156f98ba06 Fix #14256, dfd9fbf873: Company finance windows not updated when paused. (#14258) Peter Nelson 2025-05-13 01:23:27 +01:00
  • bc778545b3 Fix 0829604b4f: Dragging of selected order was still not possible. (#14259) Peter Nelson 2025-05-13 01:22:58 +01:00
  • 431e57d087 Fix 0ce30d05c8: Replacing a dropdown list could reposition it partially off-screen. (#14261) Peter Nelson 2025-05-13 01:22:45 +01:00
  • d37d4c18b5 Change: Remove Apply button from NewGRF config window when unneeded. (#14254) Peter Nelson 2025-05-13 01:22:23 +01:00
  • d107b7c8c0 Fix 3cf9b159: Incorrect tile colour in smallmap for snowy MP_CLEAR tiles in vegetation mode Jonathan G Rennison 2025-05-12 17:13:35 +01:00
  • d9247fa1a0 Change: Remove extra close buttons from some windows. (#14124) Peter Nelson 2025-05-12 14:54:44 +01:00
  • a62081d79e Fix #14251: Out-of-bounds writes via TextRefStack. (#14255) frosch 2025-05-12 13:59:33 +02:00
  • 0aacd7acb3 Codechange: Use GrfSpecFeature type instead of uint8_t. (#14253) Peter Nelson 2025-05-12 08:44:39 +01:00
  • 2516c435b7 Update: Translations from eints translators 2025-05-12 04:47:40 +00:00
  • 568b70e556 Codechange: replace memmove with std::move(_backwards) Rubidium 2025-05-08 22:06:29 +02:00
  • 3cd040ffe9 Codechange: unify moving of pixels in the blitters Rubidium 2025-05-10 21:26:08 +02:00
  • b38527ca05 Change: Move OpenTTD version to intro viewport. (#14233) Peter Nelson 2025-05-11 20:01:22 +01:00
  • 03116ea878 Codechange: remove now unused cpp_sizeof Rubidium 2025-05-11 12:43:42 +02:00
  • 02d8ae018c Codechange: simplify getting the value of a NewGRF property Rubidium 2025-05-11 12:43:28 +02:00
  • f2b48bad79 Codechange: remove last (hidden) users of memset Rubidium 2025-05-10 23:16:29 +02:00
  • c037722cb5 Fix 51a7edd: NewGRF debug sprite picker was broken. (#14246) frosch 2025-05-10 20:27:43 +02:00
  • a48a5f0cc6 Codechange: replace memcpy with std::copy_n Rubidium 2025-05-08 19:42:57 +02:00
  • a45f23686d Fix #14241, 6e10584: Invalid string parameters in subsidies list window (#14243) Loïc Guilloux 2025-05-09 18:08:17 +02:00
  • f8aceb6c37 Codechange: use value initialisation over memset Rubidium 2025-05-06 22:26:12 +02:00
  • 7981fcb297 Codechange: use std::fill_n over memset Rubidium 2025-05-06 22:35:24 +02:00
  • 92bd78dd25 Codechange: use std::ranges::fill over memset Rubidium 2025-05-07 20:31:38 +02:00
  • 96873dee63 Codechange: use std::array.fill over memset Rubidium 2025-05-06 22:25:36 +02:00
  • 228f9ca941 Fix #13854: 40bpp-anim blitter recolouring failed for 32bpp pixels without mask channel. (#14242) frosch 2025-05-09 17:16:29 +02:00
  • a277cb2b4c Change: [NewGRF] Increase the textstack for all callbacks to 16 registers. frosch 2025-05-06 17:31:51 +02:00
  • c6fa5022cb Add: [NewGRF] All callbacks returning D0xx strings, have now the option to return any string id via register 0x100. frosch 2025-05-06 17:28:51 +02:00
  • 84bc78fd8f Add: [NewGRF] Special value 0x7FFE for VarAction2 results specifying 'return calculated result'. frosch 2025-04-28 21:44:20 +02:00
  • 9d32087236 Add: [NewGRF] Special value 0x7FFF for Action2 references specifying explicit 'callback/sprite-resolving failed'. frosch 2025-04-28 21:18:55 +02:00
  • b1cdf5024f Update: Translations from eints translators 2025-05-09 04:46:47 +00:00
  • ae1f469aac Fix #14234, 16b4e73: Skip PLURAL data if parameter is invalid. (#14236) Peter Nelson 2025-05-08 09:06:56 +01:00
  • 1d18b4a80b Codechange: remove core/mem_func.hpp glx22 2025-05-08 00:46:56 +02:00
  • aba5e1258e Codechange: use assignment over MemCpyT glx22 2025-05-08 00:44:37 +02:00
  • 6356311fbc Codechange: use std::copy_n over MemCpyT glx22 2025-05-08 00:35:49 +02:00
  • a013f81120 Codechange: use std::array's fill over memset glx22 2025-05-08 00:22:36 +02:00
  • 82244779eb Codechange: use C++ initialisation over MemSetT glx22 2025-05-08 00:21:58 +02:00
  • 6680169251 Update: Translations from eints translators 2025-05-08 04:46:44 +00:00
  • 2feba80fd7 Codechange: Codestyle fixes for elrail code. Peter Nelson 2025-05-07 07:49:05 +01:00
  • 4a8dd494ee Codechange: Don't abbreviate TileLocationGroup type name. Peter Nelson 2025-05-07 07:24:06 +01:00
  • d00196cd65 Change: Rearrange buttons in the intro screen, remove unnecessary ones. frosch 2025-05-06 19:22:57 +02:00
  • 4111ce2698 Add: WWT_IMGTEXTBTN, WWT_PUSHIMGTEXTBTN frosch 2025-05-06 16:01:42 +02:00
  • a7019b859c Codechange: Use DiagDirections when checking for flat buildable tiles. Peter Nelson 2025-05-06 21:01:10 +01:00
  • aa9e5b38cd Codechange: Use DiagDirections when drawing level crossings. Peter Nelson 2025-05-06 20:38:09 +01:00
  • 1ac9f24f38 Codechange: Use (Diag)Directions when drawing catenary. Peter Nelson 2025-05-06 20:37:49 +01:00
  • 87544eff0c Codechange: Use DiagDirections to collect rail fence data. Peter Nelson 2025-05-06 20:36:42 +01:00
  • 1cbc4da054 Codechange: Use Directions for water flooding data. Peter Nelson 2025-05-06 20:21:06 +01:00
  • 968bb8961e Codechange: Add Directions and DiagDirections EnumBitSets. Peter Nelson 2025-05-06 20:20:29 +01:00
  • e0dbbbb032 Codechange: Add Reset() and missing &=/|= operators for BaseBitSet. Peter Nelson 2025-05-06 20:07:45 +01:00
  • c4d033967b Codechange: Remove some unnecessary includes from network files. (#14226) Peter Nelson 2025-05-07 16:46:14 +01:00
  • 22fedca77e Codechange: Integrate ResolverObject::ResetState() into DoResolve(), no need to call it manually. frosch 2025-05-06 16:49:29 +02:00
  • f8c928ed98 Codechange: Make temporary storage a member of ResolverObject. frosch 2025-05-05 21:35:47 +02:00
  • eb9bbb2456 Codechange: Remove direct access to temporary storage from TextRefStack. frosch 2025-05-05 21:35:11 +02:00
  • 6faa667644 Codechange: Remove global GetRegister(), instead return 100+ registers directly from GetXxxCallback(). frosch 2025-05-05 21:33:18 +02:00
  • f59cf73b88 Codechange: Access temporary storage through ResolverObject during sprite layout preprocessing. frosch 2025-05-05 21:59:56 +02:00
  • 85be7a4d92 Codechange: Access temporary storage through ResolverObject during Resolve. frosch 2025-05-05 21:28:51 +02:00
  • 99d7a775ad Codechange: Make GetRegister return a signed integer, matching the underlying TemporaryStorageArray. frosch 2025-05-05 19:39:39 +02:00
  • 74030a63e6 Codechange: Move SpriteLayoutProcessor's operations closer to the ResolverObject. frosch 2025-05-05 21:11:44 +02:00
  • 0ffdc86a2c Codechange: use std::ranges::equal over memcmp Rubidium 2025-05-06 19:44:42 +02:00
  • 89deb3876f Codechange: use fstream to compare file equality Rubidium 2025-05-06 19:19:07 +02:00
  • cd7ac64f9d Codefix: Fix compilation with DEBUG_DUMP_COMMANDS. (#14228) frosch 2025-05-06 21:11:30 +02:00
  • 592cc49b62 Codechange: Turn _grow_town_result into a local variable in GrowTownAtRoad. frosch 2025-05-05 13:13:14 +02:00
  • 5af877d12d Codechange: Do not assign _grow_town_result in GrowTownInTile, instead return the new value. frosch 2025-05-05 13:11:31 +02:00
  • 22af391064 Codechange: Move _grow_town_result out of GrowTownWithExtraHouse, GrowTownWithRoad, GrowTownWithBridge and GrowTownWithTunnel. frosch 2025-05-05 12:48:42 +02:00
  • d70aeb72a7 Codechange: C++ initialise LanguageHeaderPack Rubidium 2025-05-06 18:33:22 +02:00
  • 8f1e94c546 Codechange: use C++ initialisation over MemSetT Rubidium 2025-05-06 18:22:26 +02:00
  • cc51b29234 Codechange: use std::fill_n/copy_n over MemSetT/MemCpyT Rubidium 2025-05-06 18:13:57 +02:00
  • 0d922c9d62 Codechange: use std::array's fill over memset Rubidium 2025-05-06 18:13:15 +02:00
  • 4c1cd4fe4c Codefix: remove unused mem_func includes Rubidium 2025-05-06 18:01:57 +02:00
  • 9735fbbaa1 Codechange: Use LRUCache for layouted LineCache. Peter Nelson 2025-05-04 09:40:00 +01:00
  • 8c4f8af66e Codechange: Move std::unique_ptr out of LRUCache implementation. Peter Nelson 2025-05-04 10:06:14 +01:00
  • 8bbfbd0347 Codechange: Move spritelayout preprocessing to a separate class, which owns the heap allocations involved. frosch 2025-05-05 18:36:44 +02:00
  • d9c43e7fda Codechange: Make TileLayoutSpriteGroup::ProcessRegisters return a DrawTileSpriteSpan on the stack, instead of a reference to a global. frosch 2025-05-05 18:51:26 +02:00
  • 51a7edd941 Codechange: Remove _input_events_this_tick. frosch 2025-05-04 19:27:31 +02:00
  • 42f9312f71 Codechange: Make station variable cache a member of StationScopeResolver. frosch 2025-05-04 19:22:37 +02:00
  • b20b6da937 Codechange: The compiler ensures static variables are initialised only once, no need to track that manually. frosch 2025-05-04 19:05:43 +02:00
  • 75a775e59d Codechange: Make GetCurrentLocale return a std::string instead of a reference to a static buffer. For win32 this is even a fix, because the static buffer was only updated once. Later calls discarded the determined locale. frosch 2025-05-04 19:04:15 +02:00
  • 0d5b3ebd7f Codechange: Declare all IntervalTimers const, which can be const. frosch 2025-04-27 17:09:01 +02:00
  • 61cec33be2 Codechange: Add 'const' to static variables, which are only initialised once. frosch 2025-04-27 16:35:43 +02:00
  • 1900125c98 Codechange: Use string_view for FileExists. frosch 2025-05-04 19:01:17 +02:00
  • d571491405 Codechange: Replace std::bitset<CONTENT_TYPE_END> with ContentTypes. (#14223) Peter Nelson 2025-05-06 17:20:01 +01:00
  • eca826b0a4 Update: Translations from eints translators 2025-05-06 04:46:37 +00:00
  • 13349254ea Fix #14216, d030d17: RealSpriteGroups referencing CallbackResultSpriteGroups were always treated as callback-failure. (#14218) frosch 2025-05-05 16:13:41 +02:00
  • e23de03a99 Codechange: Use FlatSet for sprite picker list. Peter Nelson 2025-05-05 01:12:12 +01:00
  • b06273f716 Codechange: Use FlatSet when searching tiles around stations. Peter Nelson 2025-05-05 08:05:27 +01:00
  • 7679b0bc46 Codechange: Use FlatSet when filtering and drawing badge names. Peter Nelson 2025-04-13 10:06:35 +01:00
  • 5fd7344a6d Codechange: Use FlatSet when creating rivers. Peter Nelson 2025-05-05 00:56:59 +01:00
  • 7c834921b2 Codechange: Use FlatSet for per-industry type industry lists. Peter Nelson 2025-05-05 00:49:13 +01:00
  • 6070f8d4f3 Codechange: Add FlatSet implementation. Peter Nelson 2025-05-05 00:48:08 +01:00
  • 2355d67e11 Codechange: Use EnumBitSet instead of Vector to record received content types. (#14214) Peter Nelson 2025-05-05 08:55:34 +01:00
  • a46b885640 Update: Translations from eints translators 2025-05-05 04:47:18 +00:00
  • d7563096c6 Doc: Tweak documentation for consistency. (#14211) Peter Nelson 2025-05-04 20:16:29 +01:00
  • ac76212b80 Fix: Closing the Game Options window closes all textfile windows. Peter Nelson 2025-05-04 17:50:31 +01:00
  • dabf2ede67 Change: Add methods to close child windows with a specific window number. Peter Nelson 2025-05-04 17:48:33 +01:00
  • 0724b3cda8 Codechange: replace SQChar with char Rubidium 2025-05-03 21:33:27 +02:00
  • 1f411f8a16 Codechange: use string_view for squirrel parameter checks Rubidium 2025-05-03 22:40:56 +02:00
  • 588b0de3de Codechange: hide SQString internals behind std::string_view/std::span Rubidium 2025-05-03 19:31:39 +02:00