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

Commit Graph

  • 635ca3739f Codechange: use std::string_view in squirrel lexer Rubidium 2025-05-03 21:19:20 +02:00
  • 4255a94779 Codechange: use std::span over char* for writing the buffers Rubidium 2025-05-04 11:10:32 +02:00
  • 6817f52d9b Codechange: move definition of getcwd for Windows to where it is used Rubidium 2025-05-04 11:36:57 +02:00
  • 6189bbc45a Codechange: return std::string_view for convert_from_fs Rubidium 2025-05-04 11:33:41 +02:00
  • 6caa08098c Codechange: remove char* StringConsumer Rubidium 2025-05-04 11:10:47 +02:00
  • 3e608b5fe4 Fix: Zoom-scroll extra viewports only if the mouse cursor is over the viewport. (#14209) Peter Nelson 2025-05-04 14:16:05 +01:00
  • afc1e76575 Codefix: StartNewThread uses char* after returning Rubidium 2025-05-04 11:18:39 +02:00
  • 8f74c08ea6 Codechange: put SQRegFunctions into initializer_list and use ranged for loops Rubidium 2025-05-03 21:44:32 +02:00
  • f4fc8f6b38 Codechange: replace Error with simple throw Rubidium 2025-05-03 21:25:14 +02:00
  • 9d8a612bfb Codechange: remove unused function Rubidium 2025-05-04 09:24:39 +02:00
  • 5e3c7c4146 Codechange: char* -> char * Rubidium 2025-05-04 08:25:17 +02:00
  • 3f2b39e3f8 Codechange: replace char* where out-of-date Rubidium 2025-05-04 08:24:50 +02:00
  • d697280493 Codechange: remove now obsolete char* tests Rubidium 2025-05-04 08:22:20 +02:00
  • d01bebbd18 Codefix 26a4da9b01: MinGW compilation failure Rubidium 2025-05-04 08:07:00 +02:00
  • 7d7a6bd32c Update: Translations from eints translators 2025-05-04 04:46:05 +00:00
  • 8571af9833 Codechange: Turn ZoomLevel into enum class. frosch 2025-05-03 20:21:05 +02:00
  • c0d4ab69d0 Codechange: Add a container to index data by zoom level. frosch 2025-05-03 18:35:50 +02:00
  • 7055ea0aee Codechange: Define sequential operators for ZoomLevel. frosch 2025-05-03 20:03:39 +02:00
  • bbfda39ac3 Codechange: Add ZoomLevels bit set. frosch 2025-05-03 18:40:11 +02:00
  • 48d09af039 Codechange: Simplify weird range check. frosch 2025-05-03 20:01:11 +02:00
  • d464961c41 Codechange: use std::string_view for SQ stack and function info Rubidium 2025-05-03 19:15:35 +02:00
  • 0bc773215e Codechange: use std::optional<std::string_view> to make the intent of function clearer Rubidium 2025-05-03 17:05:13 +02:00
  • ead3b96883 Codechange: use std::string_view to create SQString Rubidium 2025-05-03 14:06:41 +02:00
  • fca99967a7 Codechange: make sq_scratchpad use std::span<char> Rubidium 2025-05-03 13:52:35 +02:00
  • b4d9682f21 Codechange: use std::string_view for sq_throwerror Rubidium 2025-05-03 13:25:16 +02:00
  • ec79ceb2be Codechange: use std::string_view for sq_pushstring Rubidium 2025-05-03 13:19:53 +02:00
  • 3020e615a9 Codechange: use std::string_view for squirrel compilation Rubidium 2025-05-03 13:05:34 +02:00
  • 26a4da9b01 Codechange: replace last strncmp uses Rubidium 2025-05-03 18:50:45 +02:00
  • 31754a0afd Fix: Changing monospace font didn't refresh the monospace width cache. (#14185) Peter Nelson 2025-05-03 18:34:45 +01:00
  • 7596f98e2d Codechange: Cache layouted text for the last used width. (#14177) Peter Nelson 2025-05-03 18:33:47 +01:00
  • bd1a3fe0b7 Change: Remove the limit of 20 parameters to a Script Text string. (#14193) Peter Nelson 2025-05-03 18:33:29 +01:00
  • 518a34c286 Codechange: Use std::byte for generic buffers. frosch 2025-05-03 17:41:51 +02:00
  • 02082a0211 Codechange: Deduplicate array lookup. frosch 2025-05-02 14:02:56 +02:00
  • bb767608de Codechange: Pass SpriteType as direct parameter to SpriteEncoder::Encoder. frosch 2025-05-03 15:18:28 +02:00
  • c3aa3f140c Codechange: Use more std::string_view. (#14197) frosch 2025-05-03 18:40:37 +02:00
  • 74a275f37b Add: [NewGRF] Add purchase list Action3 CID for houses, industries, industry tiles, airports and airport tiles. (#14121) frosch 2025-05-03 17:50:20 +02:00
  • 9ac9798d7f Codechange: Remove usages of stoi and stol. (#14196) frosch 2025-05-03 17:46:30 +02:00
  • b6afd8d2b6 Codechange: remove some completely unused squirrel files Rubidium 2025-05-03 13:22:25 +02:00
  • 85f1110569 Codechange: rewrite ini file parsing with the StringConsumer Rubidium 2025-05-03 10:27:49 +02:00
  • 6a9f694158 Codechange: remove StrEmpty Rubidium 2025-05-03 11:46:27 +02:00
  • d037dbb42a Codechange: use std::string_view for locales Rubidium 2025-05-03 11:44:53 +02:00
  • 96fd291693 Codechange: introduce GetEnv that returns optional based on std::getenv Rubidium 2025-05-03 11:44:34 +02:00
  • 04a6a55e94 Codechange: replace StripTrailingWhitespace with StrTrimView Rubidium 2025-05-03 08:10:08 +02:00
  • 1f39d469ff Codechange: pass the characters to trim to StrTrimView Rubidium 2025-05-03 08:05:54 +02:00
  • e2db8277b8 Codefix: implement StrTrimInPlace without assigning a borrowed view of itself Rubidium 2025-05-03 07:49:14 +02:00
  • 4109b6848b Codechange: replace manual trim and std::from_chars with ParseInteger Rubidium 2025-05-03 07:48:01 +02:00
  • 414f6a3067 Codechange: add support for parsing octal numbers Rubidium 2025-05-03 07:47:15 +02:00
  • c79abc6da6 Codechange: reduce dependence on C-style strings in OpenGL Rubidium 2025-05-02 18:07:13 +02:00
  • 278aee2c19 Codechange: use std::string_view for sq_getstring Rubidium 2025-05-02 18:46:50 +02:00
  • f4f05dea33 Update: Translations from eints translators 2025-05-03 04:45:31 +00:00
  • 8b14faaa40 Codechange: Add version of DrawStringMultiLine that performs clipping test. (#14189) Peter Nelson 2025-05-02 22:59:55 +01:00
  • 2f020abe74 Add: "Many random towns" button in scenario editor now prompts for the number of towns, with defaults based on new game settings (#14158) Iris-Persephone 2025-05-02 17:54:21 -04:00
  • 3eba97f67c Codechange: Scrollbar Count no longer needs to be clamped to uint16_t. (#14184) Peter Nelson 2025-05-02 22:21:05 +01:00
  • f7db4938ce Fix #14098: Use 64-bit type for MIDI realtime information. (#14144) Peter Nelson 2025-05-02 22:20:44 +01:00
  • c420ba349d Codechange: use std::string_view over char* Rubidium 2025-05-01 16:54:17 +02:00
  • f2a32c6d13 Codechange: use std::byte instead of char for calculating arbitrary byte offsets Rubidium 2025-05-01 16:35:22 +02:00
  • 932dca927b Fix: Crash/Undefined behaviour in station view window. (#14183) Peter Nelson 2025-05-02 08:02:35 +01:00
  • e0a9c7d818 Update: Translations from eints translators 2025-05-02 04:45:34 +00:00
  • ae9646eb0a Change: Use same padding as NewGRF parameters for AI/GS parameters lists. (#14118) Peter Nelson 2025-05-01 22:36:53 +01:00
  • 5ca686261e Codechange: use std::string_view for the string setting defaults Rubidium 2025-05-01 17:47:47 +02:00
  • 5c7b04a0c2 Codechange: use std::string_view for 'x-of-many' settings Rubidium 2025-05-01 17:32:52 +02:00
  • 7805c1c189 Codechange: use std::string_view for ini_key Rubidium 2025-05-01 17:07:46 +02:00
  • d958d50985 Fix: Small order list arrow was wrong direction for RTL text. (#14174) Peter Nelson 2025-05-01 22:08:24 +01:00
  • 41b113840a Fix: [Script] Access to enum/consts defined outside of main.nut (#14176) Loïc Guilloux 2025-05-01 18:16:32 +02:00
  • 1f212e6f2a Fix: Handle \t when loading GS strings from savegame (#14180) Loïc Guilloux 2025-05-01 16:48:02 +02:00
  • 6f4994329c Fix bf8a241f: Handle \t in trailing whitespaces (#14178) Loïc Guilloux 2025-05-01 12:32:00 +02:00
  • a30f251d05 Update: Translations from eints translators 2025-05-01 04:47:22 +00:00
  • fbe80f31fe Codechange: replace char* in GetOptData with std::string_view Rubidium 2025-04-30 22:19:11 +02:00
  • c1a287ad17 Codechange: make some saveload functions work natively with std::string_view Rubidium 2025-04-30 21:25:06 +02:00
  • 855377191e Codechange: replace some more char*s with std::string_view Rubidium 2025-04-30 20:56:54 +02:00
  • a80c11a6e8 Fix 66733e2a: Textbuf was broken, and did not insert any input. (#14173) frosch 2025-04-30 21:31:52 +02:00
  • 7dd3bed10f Fix #14170, 7fd0e6c27d: Missing spaces for timetabled order strings. (#14172) Peter Nelson 2025-04-30 19:54:54 +01:00
  • 316279f4b4 Codechange: Use more std::string_view. frosch 2025-04-30 12:40:07 +02:00
  • 9cf36dac39 Codechange: Use data() instead of c_str(), if no NUL termination is needed. frosch 2025-04-30 12:39:38 +02:00
  • 9e90d4ed79 Codefix: Do not assign nullptr to std::string_view. frosch 2025-04-30 12:38:35 +02:00
  • 36ce1f890a Codechange: Remove c_str, if std::string_view is already accepted. frosch 2025-04-30 12:38:02 +02:00
  • b564fbb5e6 Codechange: Use StringConsumer to parse hotkeys. frosch 2025-04-30 12:23:46 +02:00
  • 66733e2a50 Codechange: Use std::string_view in IME input handling. frosch 2025-04-30 12:07:58 +02:00
  • 6db13df3b5 Add: [BaseSet] Allow basesets to set minor and patch versions in obg/obs/obm files. frosch 2025-04-30 10:42:29 +02:00
  • d30fee4a99 Codechange: Improve debug/error messages when reading baseset metadata. frosch 2025-04-30 10:14:16 +02:00
  • 708e6a512d Codechange: replace char* with C++ style strings Rubidium 2025-04-29 22:34:20 +02:00
  • 356b0159c7 Fix 261e09a549: Compilation failure with Fluidsynth enabled. (#14167) Peter Nelson 2025-04-30 07:27:57 +01:00
  • 7bec2029fa Update: Translations from eints translators 2025-04-30 04:46:51 +00:00
  • 0abebfce1c Codechange: Use result of .find() instead of looking up multiple times. (#14154) Peter Nelson 2025-04-29 23:52:46 +01:00
  • aa9e8b422c Fix #14166, dfd9fbf873: Loan was no longer invalidated when refreshing finance window. (#14168) Peter Nelson 2025-04-29 23:52:11 +01:00
  • f4ad614285 Codechange: use std::string_view for FS2OTTD and OTTD2FS Rubidium 2025-04-29 21:00:06 +02:00
  • ef71ce0a9d Codechange: return std::string_view for Textbuf::GetText() Rubidium 2025-04-29 17:31:32 +02:00
  • 261e09a549 Codechange: remove char* from base driver code Rubidium 2025-04-29 16:27:13 +02:00
  • d030d17bd6 Codechange: Do not use a mutable global to return calculated VarAction2 results. frosch 2025-04-28 17:48:55 +02:00
  • e90b68d504 Codechange: Pass SpriteGroup as reference to ResolveReal. frosch 2025-04-29 10:55:37 +02:00
  • 7c946d97da Codefix: Build with OPTION_DEDICATED=OFF and CMAKE_DISABLE_PRECOMPILE_HEADERS=ON. frosch 2025-04-29 18:03:23 +02:00
  • afe3dfb3a4 Codechange: Use format instead of to_string. frosch 2025-04-29 12:41:06 +02:00
  • fda93b6f35 Codechange: Add format_append as short-hand to format_to + back_inserter. frosch 2025-04-29 12:37:34 +02:00
  • 98481ecc01 Codechange: Replace strtol, strtoll, stroul and strtoull with ParseInteger. frosch 2025-04-29 17:00:55 +02:00
  • cdafc50c94 Codechange: Replace atoi and atoll with ParseInteger. frosch 2025-04-29 16:12:54 +02:00
  • 3973199879 Change: ParseInteger now checks for trailing junk chars. frosch 2025-04-29 13:36:03 +02:00
  • 79b2202f2e Codechange: Use StringConsumer for parsing more strings. frosch 2025-04-29 16:06:48 +02:00
  • e7d758c82a Codechange: Replace sscanf with StringConsumer. frosch 2025-04-29 13:30:56 +02:00
  • 8027e31f47 Codechange: Remove virtual functions SpriteGroup::GetResult and GetNumResults. They are only implemented in and called via ResultSpriteGroup. frosch 2025-04-28 16:27:00 +02:00
  • 010b944173 Codechange: Move SpriteGroup cast from callers into Resolve. frosch 2025-04-28 15:58:35 +02:00