1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 12:39:11 +00:00

Commit Graph

  • 010b944173 Codechange: Move SpriteGroup cast from callers into Resolve. frosch 2025-04-28 15:58:35 +02:00
  • af25eecc15 Codechange: use const for std::string_view where appropriate Rubidium 2025-04-29 07:10:48 +02:00
  • 78250c3bba Codechange: remove const char* overloads when there are std::string_view and std::string& overloads Rubidium 2025-04-28 21:04:49 +02:00
  • a5578166bb Codechange: Pass Script Info by reference. Peter Nelson 2025-03-26 11:06:26 +00:00
  • 341cdbc16b Codechange: Pass Script engine by reference. Peter Nelson 2025-03-24 16:54:55 +00:00
  • 72ca962b84 Codechange: Pass ScriptInstance by reference. Peter Nelson 2025-03-24 10:24:39 +00:00
  • 13fcc0900e Change: Use enum/bitset to track which script configuration items are defined. (#14150) Peter Nelson 2025-04-28 23:07:57 +01:00
  • b20b56d5fc Codechange: store revision information in C++ style strings Rubidium 2025-04-28 22:54:51 +02:00
  • 8b1c1cc33d Codechange: provide 'sv' (string_view) literals globally Rubidium 2025-04-28 22:44:14 +02:00
  • be53bd320d Codechange: replace char* from settingsgen Rubidium 2025-04-28 21:22:20 +02:00
  • 47b5ca6115 Fix: [NewGRF] Computed VarAction2 callback results were not always properly masked to 15 bit results. frosch 2025-04-28 13:24:39 +02:00
  • d90f6f01cc Codechange: CALLBACK_FAILED is an internal constant, do not use it as numeric value in VA2 computations. frosch 2025-04-28 13:23:19 +02:00
  • 30b1eb6e5f Fix: [NewGRF] The result of Action123 evaluation affected rerandomisation in a weird corner case. (#14139) frosch 2025-04-28 23:24:42 +02:00
  • b281c5616e Change: [NewGRF] If Action123 does not resolve in a valid SpriteSet, prefer drawing the default sprite instead of an invalid sprite. frosch 2025-04-28 16:10:56 +02:00
  • 7b08170ac8 Codechange: Replace a magic value with a maybe less magical constant. frosch 2025-04-28 16:08:56 +02:00
  • 360670626b Codechange: replace char* with std::string_view Rubidium 2025-04-28 18:48:06 +02:00
  • 9107c3f6c6 Codechange: add std::string_view variant of FileHandle::Open Rubidium 2025-04-28 18:35:16 +02:00
  • 2c4897c2cd Codechange: Use EnumBitSet for HouseZones. (#14137) Peter Nelson 2025-04-28 20:27:43 +01:00
  • f5a9eae8b1 Fix: [NewGRF] AI station construction callback did not work for stations with ID >= 0x100. frosch 2025-04-28 19:07:23 +02:00
  • e2084bbdcd Codechange: Replace out parameters with result tuples. frosch 2025-04-28 19:06:29 +02:00
  • 0c6426cb2d Fix: Out-of-bounds read, if NewGRF stations provided no spritesets. frosch 2025-04-28 17:46:39 +02:00
  • 0f1ef96ca1 Codechange: Road stops do not use RealSpriteGroup, ResolveReal is never called. frosch 2025-04-28 17:38:04 +02:00
  • 9116f96e2e Codechange: replace char * with std::string_view Rubidium 2025-04-27 21:10:02 +02:00
  • c6ea0ce961 Codechange: use std::span for transferring data in network code Rubidium 2025-04-27 20:08:45 +02:00
  • b7e7f08f78 Codechange: Simplify usage of GRFFileProps by adding some common helper methods. frosch 2025-04-26 21:18:07 +02:00
  • 46494c6d44 Codechange: Rename GRFFileProps to SubstituteGRFFileProps. frosch 2025-04-26 20:08:10 +02:00
  • 298e02d593 Fix: List Ctrl+Click behaviour for vehicle details tooltip (#14127) Richard Wheeler 2025-04-28 07:00:18 +01:00
  • 68ba2735ea Update: Translations from eints translators 2025-04-28 04:46:30 +00:00
  • 794ba1f5da Fix 29ceaf0a8: checking std::optional against nullptr caused crash Rubidium 2025-04-27 20:21:31 +02:00
  • 49ef3eee13 Codechange: replace char* with std::string_view Rubidium 2025-04-27 18:31:42 +02:00
  • e1859df1c0 Codechange: Use enums as keys for the spritegroups in FixedGRFFileProps. frosch 2025-04-26 19:00:59 +02:00
  • 05504ec463 Codechange: Use SingleGRFFileProps, if the feature has no spritegroup keys. frosch 2025-04-26 18:59:55 +02:00
  • 41a20e512d Codechange: Use proper enum type to index sprite groups in VariableGRFFileProps. frosch 2025-04-26 18:57:03 +02:00
  • 893aa0fb91 Codechange: Add an explicit enum member for the default spritegroup of badges. frosch 2025-04-26 18:45:28 +02:00
  • 29ceaf0a84 Codechange: use std::string_view over const char * Rubidium 2025-04-27 17:17:05 +02:00
  • c7056866a3 Codechange: remove manual param count; in all cases strlen(params) == nparams Rubidium 2025-04-26 21:10:08 +02:00
  • 781187b8a6 Codechange: replace C-style strings with std::string_view related to strings functions Rubidium 2025-04-27 09:40:27 +02:00
  • 4e3e3d5be6 Codechange: introduce transparent hash lookup for strings Rubidium 2025-04-27 15:49:10 +02:00
  • 7bbf380931 Fix #14125, 828e808444: NewGRF sounds were not loaded. (#14130) Peter Nelson 2025-04-27 16:20:38 +01:00
  • b9667ec3d1 Codechange: use std::string_view for scripts Rubidium 2025-04-26 21:10:08 +02:00
  • 864fe29028 Update: Translations from eints translators 2025-04-27 04:44:13 +00:00
  • 5a7893b730 Fix #14104, 67a0fcc: Don't base timetable timing decisions on client settings. (#14105) Peter Nelson 2025-04-26 22:39:01 +01:00
  • b87ce9c845 Change: Draw info headers as shade of window colour instead of pixel colour. (#14123) Peter Nelson 2025-04-26 22:38:24 +01:00
  • 55fad9c78a Add: Limit height of settings description, and add scrollbar. (#14102) frosch 2025-04-26 22:34:18 +02:00
  • d85f6dccc5 Fix 5575379: Crash with default airports. (#14120) frosch 2025-04-26 22:29:01 +02:00
  • f62f728187 Codechange: Move usage of ResolverObjects to newgrf_xxx.cpp (#14116) frosch 2025-04-26 20:53:50 +02:00
  • be39a05327 Fix: Road vehicle blocking and train collissions used slightly inconsistent distance thresholds. frosch 2025-04-26 15:24:40 +02:00
  • 3a70d1e2f7 Codechange: Pass the max-distance as parameter to VehiclesNearTileXY. frosch 2025-04-26 15:23:14 +02:00
  • 2df1233f1f Codechange: Clamp the search area to valid values for the hash bucket selection. frosch 2025-04-26 15:19:57 +02:00
  • 0f76ba122c Codefix: VehiclesNearTileXY yielded all vehicles with matching hashes, even if they are far away. frosch 2025-04-26 15:17:15 +02:00
  • c14e4a6db1 Codefix: Rect::Contains did not consider the bottom/right edges as inside. frosch 2025-04-25 17:19:17 +02:00
  • 3235ec4cf8 Codefix: checking unsigned int >= 0 is pointless, check before subtraction Rubidium 2025-04-26 16:34:24 +02:00
  • ce2155ab27 Codechange: Remove unused FindVehicleOnPosXY/HasVehicleOnPosXY. frosch 2025-04-25 17:48:50 +02:00
  • 98ac75e74f Codechange: Replace FindVehicleOnPosXY/HasVehicleOnPosXY with VehiclesNearTileXY/HasVehicleNearTileXY. frosch 2025-04-25 17:47:25 +02:00
  • 9f1c04c0e1 Codechange: Add VehiclesNearTileXY and HasVehicleNearTileXY to iterate over/check for ground vehicles near a tile coordinate. frosch 2025-04-25 17:46:40 +02:00
  • ac3ed9f3ad Codechange: Deduplicate and simplify tile hash arithmetic. frosch 2025-04-25 17:35:05 +02:00
  • b4d4d730a5 Codechange: use std::string_view for town name generation Rubidium 2025-04-26 14:25:58 +02:00
  • 30f381acee Codechange: use std::string_view for NetworkAddress Rubidium 2025-04-26 11:47:00 +02:00
  • e1db09a41f Codechange: use std::string_view for NewsTypeData Rubidium 2025-04-26 11:42:28 +02:00
  • 42f0aa24f6 Codechange: use std::string_view for connection/URI strings Rubidium 2025-04-26 11:38:46 +02:00
  • a5812a45f8 Codechange: use std::string view for URI and std::move for data Rubidium 2025-04-26 11:38:25 +02:00
  • d1a7d30572 Codechange: use std::string_view for some settings functions Rubidium 2025-04-26 11:29:47 +02:00
  • 4476ce804d Codechange: use std::string_view for GetNextParameterString Rubidium 2025-04-26 11:22:09 +02:00
  • 398524e49a Add: [NewGRF] Provide random bits in var10 of house callback 1C 'construction stage changed'. (#14095) frosch 2025-04-26 15:58:44 +02:00
  • 55753795bf Fix: [NewGRF] Cargo-types for airport-tile animation-triggers were not properly translated. (#14092) frosch 2025-04-26 15:58:30 +02:00
  • 1ea1dbd19e Add: [NewGRF] Station/roadstop animation-triggers 'tile loop' (bit 7) and 'path reservation' (bit 8). (#14080) frosch 2025-04-26 14:44:55 +02:00
  • d3ae6bc9a8 Fix: [NewGRF] For animation-triggers which do not supply a cargo-type in var18, the var18 bits should remain empty. (#14091) frosch 2025-04-26 14:44:07 +02:00
  • 0d9074769d Change: [NewGRF] Animation-trigger 'construction stage changed' of houses and industries now also triggers at construction start. (#14089) frosch 2025-04-26 14:42:49 +02:00
  • 365eed533d Codechange: use std::string_view for console commands Rubidium 2025-04-20 14:10:36 +02:00
  • f04cf54939 Codechange: make IConsoleCmdExec use C++ strings internally Rubidium 2025-04-24 17:43:35 +02:00
  • 28d0e6dfc0 Change: [Script] Reject scripts using negative version (#14096) Loïc Guilloux 2025-04-26 14:02:36 +02:00
  • 4a5db57f7b Fix #14107: Mark the company value in the company view window dirty when it changes. (#14112) Peter Nelson 2025-04-26 12:56:11 +01:00
  • dfd9fbf873 Codechange: Defer refreshing company finance windows. (#14111) Peter Nelson 2025-04-26 11:50:51 +01:00
  • a1f086e60c Fix #14107: Invalidate all shared vehicle windows when changing group. (#14110) Peter Nelson 2025-04-26 11:49:41 +01:00
  • bb1d561369 Update: Translations from eints translators 2025-04-26 04:44:12 +00:00
  • 08ce16018b Codechange: make start-ai console command parsing work with std::string_view Rubidium 2025-04-25 00:05:16 +02:00
  • ccbf7f4a46 Codechange: validate the given seed Rubidium 2025-04-24 23:55:38 +02:00
  • 86039a5b69 Codechange: make SetDebugString use C++-style strings and function types Rubidium 2025-04-24 23:50:59 +02:00
  • 498a0f1c1b Codechange: use C++ strings over C-strings Rubidium 2025-04-24 23:26:13 +02:00
  • 4a09860c53 Fix: Focus settings filter box (only) when the tab becomes active. (#14100) frosch 2025-04-25 12:04:26 +02:00
  • f554d799d7 Change: [NewGRF] Provide shared random bits in multi-tile animation-triggers of airport tiles and objects, just like for other features. (#14090) frosch 2025-04-25 10:01:01 +02:00
  • 8b927220c7 Change: Move Game Options toggles to before label, add Off/On text. (#14097) Peter Nelson 2025-04-25 07:49:33 +01:00
  • e61762a805 Update: Translations from eints translators 2025-04-25 04:46:37 +00:00
  • 87b5b0ffa3 Fix 2b80812922: Map size column in server list may be too wide. (#14094) Peter Nelson 2025-04-24 21:05:31 +01:00
  • 2087bca87d Codechange: replace atoi with ParseInteger in console commands Rubidium 2025-04-23 19:53:42 +02:00
  • ddc0d6ead3 Codechange: use string comparision for ConExec's second parameter Rubidium 2025-04-23 20:42:29 +02:00
  • a01d47b333 Doc: Correct baseset obg file MD5 and url documentation (#14086) Richard Wheeler 2025-04-24 12:24:32 +01:00
  • 880a947eb3 Fix: [NewGRF] Randomisation-trigger 'path reservation' did not work for waypoints. frosch 2025-04-22 18:34:28 +02:00
  • bc0eaf9ac4 Codechange: Allow passing waypoints to Trigger(Station|RoadStop)Randomisation. frosch 2025-04-22 18:27:49 +02:00
  • c0cd7cafe4 Change: Remove minimum width from advanced settings panel of Game Options window. (#14088) Peter Nelson 2025-04-24 00:39:35 +01:00
  • 7846f0f4ee Fix a4dc7249ee: Changing language or interface scale could hang. (#14087) Peter Nelson 2025-04-24 00:29:54 +01:00
  • 78d3eaf3e2 Change: Slider widget can now be colourful. Peter Nelson 2025-04-18 15:47:35 +01:00
  • 20738865f0 Change: Use standard mauve/yellow scheme for game options window. Peter Nelson 2025-04-18 15:43:00 +01:00
  • 17e7dafa2a Change: Add alternate_colour widget data for boolean button. Peter Nelson 2025-04-21 17:08:10 +01:00
  • 7953a97cbb Change: Adjust section names in Graphics options tab. Peter Nelson 2025-04-21 22:36:54 +01:00
  • 77da79a052 Codechange: Remove unnecessary SetMinimalSize from Game Options window. Peter Nelson 2025-04-21 22:13:04 +01:00
  • a4dc7249ee Change: Merge Game Options and Game Settings together. Peter Nelson 2024-12-31 11:47:40 +00:00
  • 6f056283f2 Fix: [NewGRF] For roadstop multi-tile-animation-triggers, the upper 16 bits were not the same for all tiles. (#14084) frosch 2025-04-23 19:26:09 +02:00
  • f8bdc1e612 Fix f5ffd47: Don't skip separator while reading a record (#14083) Loïc Guilloux 2025-04-23 17:30:51 +02:00
  • 6d5aee0545 Codechange: Restructure RoadStop Entries to reduce pointers. (#14069) Peter Nelson 2025-04-23 08:29:34 +01:00