Commit Graph

  • e8a56db21d Codechange: use designated initializers for OptionData and pass as span Rubidium 2024-04-10 21:49:39 +02:00
  • 4f2412a272 Codechange: range based for loops instead of C-style for loops Rubidium 2024-04-09 17:18:35 +02:00
  • 2587a21400 Codechange: use zero-initialization instead of C-style loop Rubidium 2024-04-09 17:35:51 +02:00
  • ff27b9e76a Codechange: use std::any_of instead of custom loop Rubidium 2024-04-09 17:09:23 +02:00
  • 6cade18053 Update: Translations from eints portuguese (brazilian): 1 change by pasantoro polish: 1 change by pAter-exe translators 2024-04-11 04:41:57 +00:00
  • 442daf58da Codechange: replace lengthof with std::size in Windows specific code rubidium42 2024-04-10 20:12:33 +02:00
  • 6bc4a62c27 Codechange: Pass std::string_view from blitters instead of char *. Peter Nelson 2024-04-09 23:35:50 +01:00
  • 332cbca36e Codechange: Pass std::string_view from drivers instead of char *. Peter Nelson 2024-04-09 02:47:14 +01:00
  • a42aa1a086 Codechange: Remove cargo_suffix C-array from GetIndustryString. (#12472) Peter Nelson 2024-04-10 21:32:21 +01:00
  • 40644f21d4 Version: Committing version data for tag: jgrpp-0.58.3 Jonathan G Rennison 2024-04-10 19:25:55 +01:00
  • 6642b7e12c Temporary fix for click/tooltip alignment of cargo lines in industry chains window Jonathan G Rennison 2024-04-10 18:43:41 +01:00
  • 144bcbbaf1 Fix: Use clear() to clear std::string. (#12471) Peter Nelson 2024-04-10 18:27:30 +01:00
  • 21b640b5ff Codechange: simplify president name generation Rubidium 2024-04-10 06:51:11 +02:00
  • 8e0fa32d33 Fix merge/editing error in IndustryCargoesWindow Jonathan G Rennison 2024-04-10 17:34:57 +01:00
  • 1b4bb1d38a Codefix: [CMake] use the UTC0 date for our ISODATE (#12470) Patric Stout 2024-04-10 10:50:44 +02:00
  • f0f97c698b Update: Translations from eints norwegian (bokmal): 11 changes by eriksorngard russian: 5 changes by Ln-Wolf spanish: 5 changes by MontyMontana portuguese (brazilian): 7 changes by pasantoro translators 2024-04-10 04:40:30 +00:00
  • 3d04989507 Link graph: Change distance scaling algorithm in demand scaler Jonathan G Rennison 2024-04-09 23:35:21 +01:00
  • 1773c5b810 Change: Increase object/station/roadstop class limit. (#12094) Peter Nelson 2024-04-09 23:16:20 +01:00
  • df8eeb1b10 Codechange: use C++ algorithms to determine the SaveLoadFormat Rubidium 2024-04-09 22:57:39 +02:00
  • 77f27e0804 Change: Expose NewGRF classes and specs as spans and simplify iteration. Peter Nelson 2024-04-09 17:54:43 +01:00
  • 052f421327 Change: Use vector/iterators/algorithms instead of C-array/loops for NewGRF classes. Peter Nelson 2024-04-09 17:54:42 +01:00
  • 34758d0921 Change: Allow string mapping by function instead of pointer. Peter Nelson 2024-04-09 17:54:42 +01:00
  • 90ca3515da Fix #12459, f6a88e4: Crashes when deleting news messages. (#12460) Peter Nelson 2024-04-09 21:46:29 +01:00
  • 3712b84d2e Fix narrowing conversion warnings Jonathan G Rennison 2024-04-09 18:45:37 +01:00
  • 2976a46d06 Fix 54be756: Terminating NUL byte was not skipped in ReadString(). (#12462) Peter Nelson 2024-04-09 15:15:09 +01:00
  • 883d3e7a9f Codechange: use std::span instead of pointer + length Rubidium 2024-04-08 20:14:25 +02:00
  • 54be756aae Codechange: Pass NewGRF strings as std::string_view instead of char *. (#12461) Peter Nelson 2024-04-09 08:40:27 +01:00
  • dc7c2bb30d Fix: Draw continuation lines for engine variant hierarchy tree. (#12434) Peter Nelson 2024-04-09 08:35:12 +01:00
  • de4e00c93f Codechange: Pass by reference to UpdateWidgetSize. (#12457) Peter Nelson 2024-04-09 08:34:45 +01:00
  • b5ad28022d Update: Translations from eints english (au): 5 changes by krysclarke chinese (simplified): 1 change by WenSimEHRP catalan: 7 changes by J0anJosep portuguese (brazilian): 27 changes by pasantoro translators 2024-04-09 04:40:33 +00:00
  • 1b127628cb Codechange: Use dynamic_cast with FindWindowById. (#12458) Peter Nelson 2024-04-08 22:32:57 +01:00
  • bf0cb3c43f Codechange: let lengthof fail when anything that isn't a C-style array is passed Rubidium 2024-04-05 22:34:24 +02:00
  • 28e74005d0 Remove various uses of lengthof on std::array Jonathan G Rennison 2024-04-08 19:55:58 +01:00
  • 919830db7a Fix: do not use lengthof() for non C-style arrays Rubidium 2024-04-05 22:34:20 +02:00
  • c5b854a422 Codechange: Avoid lengthof() on std::array. Peter Nelson 2023-07-15 20:44:07 +01:00
  • 9b830e9eb2 Fix: Aircraft crash counter was too low to reach ground. (#12425) Peter Nelson 2024-04-05 19:16:22 +01:00
  • cc6322e0a3 Fix #12233: Mini order list overlaps vehicle group name. (#12423) Peter Nelson 2024-04-05 08:18:12 +01:00
  • df03366cf5 Fix #12114: Viewport coords of crashed aircraft not updated when falling. (#12424) Peter Nelson 2024-04-05 08:17:42 +01:00
  • 7e28605830 Fix: Use reinterpret_cast instead of C-style cast to align pointers. Peter Nelson 2024-04-08 17:07:56 +01:00
  • 4daf95b878 Fix: Use static_cast instead of C-cast to avoid hidden errors. Peter Nelson 2024-04-08 17:07:56 +01:00
  • cdfffb551c Fix: sym->sym accidentally changed to sym prevented keys working with SDL. Peter Nelson 2024-04-08 17:07:55 +01:00
  • 74e09abf76 Codechange: Use dynamic_cast instead of C-cast after FindWindowById. (#12448) Peter Nelson 2024-04-08 13:26:19 +01:00
  • 4e6d4fcf32 Codechange: replace for loops with endof with range-based for loops Rubidium 2024-04-07 22:18:39 +02:00
  • 095bdf32fe Update: Translations from eints greek: 5 changes by gh658804 finnish: 7 changes by hpiirai ukrainian: 56 changes by Quantom2, 14 changes by imlystyi latvian: 14 changes by lexuslatvia portuguese: 14 changes by azulcosta portuguese (brazilian): 10 changes by pasantoro polish: 5 changes by pAter-exe translators 2024-04-08 04:41:24 +00:00
  • 62f5c595f3 Codechange: use range-based for loops and let count be correct count Rubidium 2024-04-07 21:55:40 +02:00
  • 4718971ccc Codechange: use std::size instead of lengthof for town names rubidium42 2024-04-07 13:50:14 +02:00
  • 995fca58a2 Codechange: Use begin/end instead of endof for some industry arrays. (#12447) Peter Nelson 2024-04-07 22:01:46 +01:00
  • d7fa614a9d Codechange: use range-based for loop for debug levels and fix global variable naming Rubidium 2024-04-07 21:37:49 +02:00
  • 1fcf1a136d Codechange: use single function returning std::span over two functions that return size and begin Rubidium 2024-04-07 15:30:00 +02:00
  • 89e3b009c3 Fix changing sprite alignment in sprite aligner window Jonathan G Rennison 2024-04-07 12:40:24 +01:00
  • 0f6bf90731 Update: Translations from eints translators 2024-04-07 04:41:19 +00:00
  • eb094a953c Codefix: Social Plugins widget parts were not constexpr. (#12443) Peter Nelson 2024-04-06 23:32:26 +01:00
  • 34ba969c74 Change: Display more useful information in sprite aligner than sprite ID. (#12439) Peter Nelson 2024-04-06 21:16:02 +01:00
  • fbdf26800b Codechange: Use std::initializer_list and range-for for credits window. (#12431) Peter Nelson 2024-04-06 19:30:23 +01:00
  • a4c2f0778a Codechange: Use range-for to iterate keycode-to-name lookups. (#12429) Peter Nelson 2024-04-06 19:30:01 +01:00
  • b905209421 Fix: Viewport signs assume small font is smaller than normal font. (#12422) Peter Nelson 2024-04-06 19:29:41 +01:00
  • 830c9e2de8 Codechange: Simplify iteration of framerate performance elements. Peter Nelson 2024-04-05 19:31:08 +01:00
  • 97bea563d7 Codechange: let lengthof fail when anything that isn't a C-style array is passed Rubidium 2024-04-05 22:34:24 +02:00
  • c544a2be0a Fix: do not use lengthof() for non C-style arrays Rubidium 2024-04-05 22:34:20 +02:00
  • eaafc57de6 Update: Translations from eints swedish: 6 changes by joeax910 norwegian (bokmal): 2 changes by eriksorngard chinese (simplified): 2 changes by WenSimEHRP dutch: 2 changes by Afoklala translators 2024-04-06 04:41:24 +00:00
  • 8e881471c1 Codechange: Pass replacement blitter name as string_view instead char *. Peter Nelson 2024-04-05 19:46:53 +01:00
  • 6771dbe62b Codechange: Use range-for to find replacement blitter. Peter Nelson 2024-04-05 19:45:32 +01:00
  • a866166673 Codechange: Use initializer_list and range-for for OpenTTD title. (#12430) Peter Nelson 2024-04-05 21:52:50 +01:00
  • 2cc700d606 Codechange: Replace colour_dropdown array with StringID arithmetic. (#12426) Peter Nelson 2024-04-05 21:51:36 +01:00
  • 83da886093 Fix: Aircraft crash counter was too low to reach ground. (#12425) Peter Nelson 2024-04-05 19:16:22 +01:00
  • 1a6a4c9a6c Fix path-only signal cycle mode being ignored when using realistic braking Jonathan G Rennison 2024-04-05 17:54:21 +01:00
  • e8c78df39e Fix #12233: Mini order list overlaps vehicle group name. (#12423) Peter Nelson 2024-04-05 08:18:12 +01:00
  • d11622b9a0 Fix #12114: Viewport coords of crashed aircraft not updated when falling. (#12424) Peter Nelson 2024-04-05 08:17:42 +01:00
  • df3e5ade11 Update: Translations from eints korean: 2 changes by telk5093 portuguese (brazilian): 1 change by pasantoro translators 2024-04-05 04:43:25 +00:00
  • 7572cfd103 Codechange: Redefine ZOOM_LVL so that ZOOM_LVL_NORMAL is 1x zoom. Peter Nelson 2024-04-04 18:51:46 +01:00
  • 9854553e10 Codechange: ZOOM_LVL_SHIFT/BASE are not actually ZOOM_LVLs. Peter Nelson 2024-04-04 18:27:34 +01:00
  • 3c94e81665 Codechange: Use ZOOM_LVL_MIN to refer to first zoom level. Peter Nelson 2024-04-04 18:49:37 +01:00
  • 7c322ebcf1 Codechange: Define a ZOOM_LVL for minimum text effect visibility. Peter Nelson 2024-04-04 20:27:11 +01:00
  • 197fb00d31 Fix #12395: Ensure president name widget is tall enough. (#12419) Peter Nelson 2024-04-04 17:56:16 +01:00
  • 338def1b06 Fix: Segfault when using -q without providing a . character. (#12418) Peter Nelson 2024-04-04 14:39:15 +01:00
  • f6a88e40a4 Codechange: Use std::list for News Items. (#12338) Peter Nelson 2024-04-04 07:53:14 +01:00
  • 08cf106fc6 Update: Translations from eints english (us): 2 changes by 2TallTyler finnish: 2 changes by hpiirai ukrainian: 2 changes by Quantom2 danish: 2 changes by beruic portuguese (brazilian): 22 changes by pasantoro translators 2024-04-04 04:41:30 +00:00
  • a9dbd793b4 Implement Vehicle::GetCargoTile for (multi-part) ships Jonathan G Rennison 2024-04-03 22:26:04 +01:00
  • 3cf43de059 Fix #12415, 9c49a61, df400ef: Aircraft::tile is valid only for front vehicle (#12416) Loïc Guilloux 2024-04-03 23:16:36 +02:00
  • 243c6bead3 Fix #12415, 9c49a61, df400ef: Aircraft::tile is valid only for front vehicle (#12416) Loïc Guilloux 2024-04-03 23:16:36 +02:00
  • 931aa39018 Update: Translations from eints english (au): 2 changes by krysclarke swedish: 2 changes by joeax910 greek: 2 changes by gh658804 russian: 3 changes by its5Q catalan: 2 changes by J0anJosep spanish: 2 changes by MontyMontana portuguese: 2 changes by azulcosta portuguese (brazilian): 27 changes by pasantoro polish: 2 changes by pAter-exe translators 2024-04-03 04:40:31 +00:00
  • 9750826590 Fix a29766d: Wrong scrolling dropdown list position with RTL. (#12412) Peter Nelson 2024-04-02 13:29:15 +01:00
  • 72b5c6a591 Update: Translations from eints vietnamese: 1 change by KhoiCanDev greek: 83 changes by gh658804 german: 3 changes by Wuzzy2 ukrainian: 54 changes by Quantom2 spanish: 4 changes by MontyMontana portuguese (brazilian): 2 changes by pasantoro translators 2024-04-02 04:41:36 +00:00
  • 2047c27445 Codechange: Move drop down list item definitions to separate header. Peter Nelson 2024-03-31 17:31:47 +01:00
  • 56cac21086 Codechange: Use functions to create common drop down list items. Peter Nelson 2024-03-31 17:31:47 +01:00
  • 11aa3694fa Fix: [Win32] Force font mapper to only use TrueType fonts (#12406) Loïc Guilloux 2024-04-01 22:59:13 +02:00
  • 3de8853e29 Codechange: Store accepted and produced cargo in vector instead of array. Peter Nelson 2023-07-14 11:49:11 +01:00
  • 00e0021e3a Codechange: Don't assume accepted/produced slot exists. Peter Nelson 2023-11-29 21:30:19 +00:00
  • 295508fc53 Codechange: Avoid lengthof() on std::array. Peter Nelson 2023-07-15 20:44:07 +01:00
  • f79ec7955a Codechange: Explicitly reset old industry data before loading games. Peter Nelson 2023-11-29 22:49:34 +00:00
  • bd2a92331b Codechange: Use inline and std::array for old industry structures. Peter Nelson 2023-11-29 22:42:35 +00:00
  • f6b38e8e06 Codechange: Remove optional MakeCargo() parameters that are never changed. Peter Nelson 2024-03-25 21:07:34 +00:00
  • e4fc8ef595 Codechange: Use std::span for industry cargo window instead of pointer + length. Peter Nelson 2024-03-24 15:37:01 +00:00
  • 6f36f3d714 Fix #11055: Make saveload failure error messages consistent with others (#12247) merni-ns 2024-04-01 22:27:03 +05:30
  • 92a171c3e0 Doc: Improve the output and documentation of the font command. (#12392) merni-ns 2024-04-01 22:25:44 +05:30
  • d68e5159e1 Feature: Allow base sounds set to be changed mid-game. (#12399) Peter Nelson 2024-04-01 17:54:42 +01:00
  • 3d2a8fb60c Update: Translations from eints welsh: 5 changes by Ansbaradigeidfran ukrainian: 11 changes by StepanIvasyn catalan: 1 change by J0anJosep portuguese (brazilian): 69 changes by pasantoro translators 2024-04-01 04:40:15 +00:00
  • d683ec0183 Codechange: Move dropdown and slider out of widgets directory. (#12403) Peter Nelson 2024-03-31 19:37:16 +01:00
  • 0008e7d769 Fix velocity unit names used in cargo payments graph window Jonathan G Rennison 2024-03-31 17:48:58 +01:00
  • 4d47eee48d Lang: Update tiles/day and tiles/sec unit name strings Jonathan G Rennison 2024-03-31 17:48:42 +01:00