Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] develop from OpenRCT2:develop #34

Merged
merged 599 commits into from Dec 20, 2020
Merged

Conversation

pull[bot]
Copy link

@pull pull bot commented Sep 8, 2020

See Commits and Changes for more details.


Created by pull[bot]. Want to support this open source service? Please star it : )

@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Sep 8, 2020
@pull pull bot added ⤵️ pull and removed 🔍 Ready for Review Pull Request is not reviewed yet labels Sep 8, 2020
@trafico-bot trafico-bot bot added the 🔍 Ready for Review Pull Request is not reviewed yet label Sep 8, 2020
@pull-assistant
Copy link

pull-assistant bot commented Sep 8, 2020

Score: 0.88

Best reviewed: commit by commit


Optimal code review plan (27 warnings, 4 commits squashed)

     Rename PathElement::Edges for clarity

Remove unused 'direction' parameter

src/openrct2/ride/TrackPaint.h 97% changes removed in Merge pull request #...

Use Direction type for TrackPaint functions

...c/openrct2/ride/TrackPaint.cpp 64% changes removed in Merge pull request #...

src/openrct2/ride/TrackPaint.h 55% changes removed in Merge pull request #...

     Fix formatting

     Fix compile errors in TestPaint project

     Merge pull request #12880 from richard-fine/directions

     Close #12434: Refactor ENTERTAINER_COSTUME to use strong enum (#12865...

Fix #5753: Entertain... ... Merge pull request #...

Squashed 2 commits:

Create Objective struct and use it for global objective

...openrct2/scenario/Scenario.cpp 65% changes removed in Merge pull request #...

...c/openrct2/rct2/S6Exporter.cpp 86% changes removed in Merge pull request #...

     Make scenario check into member functions

     Make all game actions take an ObjectEntryIndex where applicable (#1238...

     Restrict lint-commit to pull requests (#12892)

     Merge pull request #12665 from Gymnasiast/refactor/objective-struct

     Refactor window offset std::arrays into regular arrays (#12799)

     Make all GameAction types accessible to plugins (#12708)

Replace gfx_draw_string_clipped() calls with DrawTextEllipsised

...-ui/windows/ScenarioSelect.cpp 75% changes removed in Merge pull request #...

...nrct2-ui/windows/TrackList.cpp 80% changes removed in Merge pull request #...

...c/openrct2-ui/windows/Ride.cpp 86% changes removed in Merge pull request #...

...windows/TitleCommandEditor.cpp 94% changes removed in Merge pull request #...

...openrct2-ui/windows/Themes.cpp 54% changes removed in Merge pull request #...

...enrct2-ui/interface/Widget.cpp 71% changes removed in Remove const void* o...

...dows/EditorObjectSelection.cpp 50% changes removed in Remove const void* o...

...nrct2-ui/windows/GuestList.cpp 60% changes removed in Remove const void* o...

...ct2-ui/windows/TitleEditor.cpp 60% changes removed in Merge pull request #...

...t2-ui/windows/InstallTrack.cpp 50% changes removed in Remove const void* o...

Remove const void* overload from DrawTextEllipsised()

.../openrct2-ui/windows/Guest.cpp 80% changes removed in Use the Formatter fo...

src/openrct2/drawing/Text.cpp 50% changes removed in Merge pull request #...

...enrct2-ui/interface/Widget.cpp 75% changes removed in Merge pull request #...

...penrct2-ui/windows/NewRide.cpp 67% changes removed in Merge pull request #...

...rct2-ui/windows/ServerList.cpp 67% changes removed in Merge pull request #...

...-ui/windows/ScenarioSelect.cpp 50% changes removed in Merge pull request #...

...ndows/EditorInventionsList.cpp 75% changes removed in Merge pull request #...

Merge pull request #12797 from Gymnasiast/refactor/ellipsised-strings

src/openrct2/drawing/Text.cpp 50% changes removed in Move storage into Fo...

...t2-ui/windows/InstallTrack.cpp 50% changes removed in Revert regressed war...

     Fix #12881: Guests' favourite rides not listed in the guest window

     Add stroke to lowercase 'L' to differentiate from capital 'I' (#12890)...

     Add visitors for all scenery placement and removes (#12886)

     Use correct count of research items when importing park

Convert remaining C-style casts to C++-style ones

.../tests/S6ImportExportTests.cpp 50% changes removed in Merge pull request #...

     Cleanup c-style casts from FileScanner.hpp

Cleanup c-style casts from File.cpp

src/openrct2/core/File.cpp 50% changes removed in Merge pull request #...

     Cleanup c-style casts from Crypt.CNG.cpp

     Cleanup c-style casts from FileWatcher.cpp

     Cleanup c-style casts from Http.WinHttp.cpp

     Cleanup c-style casts from String.cpp

Cleanup c-style casts from Path.cpp

src/openrct2/core/Path.cpp 50% changes removed in Merge pull request #...

Cleanup c-style casts from Socket.cpp

...rc/openrct2/network/Socket.cpp 80% changes removed in Merge pull request #...

     Cleanup c-style casts from Windows.cpp

     Cleanup c-style casts from Shared.cpp

     Cleanup c-style casts from Platform.Win32.cpp

     Favour constexpr function over macro on Crypt.CNG.cpp

Close #12420: Refactor NETWORK_PERMISSION to use strong enum

...enrct2/network/NetworkBase.cpp 64% changes removed in Merge pull request #...

...nrct2/network/NetworkGroup.cpp 54% changes removed in Merge pull request #...

...enrct2/scripting/ScNetwork.hpp 67% changes removed in Merge pull request #...

Close #12421: Refactor NETWORK_AUTH to use strong enum

...enrct2/network/NetworkBase.cpp 95% changes removed in Merge pull request #...

     Fix #12900: Garbled/distorted date lines in file browser (#12902)

     Merge pull request #12899 from Gymnasiast/refactor/c-style-casts

     Fix #12901: Guest thoughts show up as guest actions or names

     Revert regressed warning on window_install_track_paint

     Merge pull request #12903 from tupaschoal/fix-12787-regressions

     Fix #12910: Plugin API: getRide sometimes returns null for valid IDs

fixed issue 12335 ... Apply requested fixe...

Squashed 2 commits:

     Merge pull request #12344 from Ron4u/fixed-issue-12335

Consolidate pathfinding code

src/openrct2/peep/Peep.cpp 50% changes removed in Fixes from review fe...

     Document public API for pathfinder

     Fix #12912: Plugin: selectedCell of CustomListView (#12913)

     Rename Rain.{cpp,h} to Weather.{cpp,h} (#12914)

     Add plugin API for park flags

     Add plugin API for scenario and objective

     Add quadrant and occupiedQuadrants to plugin API

     Fix 11414: ‘Possible misuse of comma operator’ warnings (#12919)

     Merge pull request #12921 from OpenRCT2/plugin/extras

     Introduce mechanism for configuring dropdown menu with static data

     Convert view menu to use new constexpr menu specification

     Convert cheats menu to use new constexpr menu specification

     Make menu data declarations local to the functions using them

     Part of #12097: Use ScreenRect on gfx_fill_rect_inset in Widget.cpp (#...

     Close #12389: Refactor PeepSittingSubState (#12908)

Rename rain to weather where appropriate

...c/openrct2/drawing/Weather.cpp 67% changes removed in Merge pull request #...

src/openrct2/drawing/Weather.h 50% changes removed in Merge pull request #...

...rct2/drawing/X8DrawingEngine.h 80% changes removed in Merge pull request #...

Add snow as a weather type

...t2/drawing/X8DrawingEngine.cpp 43% changes removed in Merge pull request #...

...openrct2-ui/windows/Cheats.cpp 57% changes removed in Merge pull request #...

     Do not transition to snow for now

     Also set proper temperature when using weather cheat

     Amend changelog; bump network version

     Merge pull request #12858 from ju-pinheiro/network-strong-enums

     Merge pull request #12922 from Gymnasiast/LetItSnow2

     Add rpstester to list of Bug Fixes (#12937)

     Part of #12097: Use ScreenRect on gfx_fill_rect_inset (1) (#12938)

     Merge Localisation/master into OpenRCT2/develop

     Remove unused declarations

     Always return unique_ptr for the IniReader/IniWriter interface

     Remove unused Registration.hpp

     Fix #9088: refactor JSON code to use a more modern C++ library

Refactor NetworkBase to use new JSON library

src/openrct2/network/network.h 50% changes removed in Merge pull request #...

Refactor NetworkGroup to use new JSON library

...nrct2/network/NetworkGroup.cpp 52% changes removed in Merge pull request #...

Refactor NetworkServerAdvertiser to use new JSON library

...rk/NetworkServerAdvertiser.cpp 63% changes removed in Merge pull request #...

Refactor NetworkUser to use new JSON library

...enrct2/network/NetworkUser.cpp 55% changes removed in Merge pull request #...

Refactor ServerList to use new JSON library

...penrct2/network/ServerList.cpp 62% changes removed in Merge pull request #...

     Refactor ObjectJsonHelpers

Refactor ObjectFactory to use new JSON library

...nrct2/object/ObjectFactory.cpp 69% changes removed in Merge pull request #...

Refactor objects to use new JSON library

.../object/LargeSceneryObject.cpp 65% changes removed in Merge pull request #...

...openrct2/object/RideObject.cpp 43% changes removed in Merge pull request #...

...enrct2/object/BannerObject.cpp 75% changes removed in Merge pull request #...

.../object/SmallSceneryObject.cpp 77% changes removed in Merge pull request #...

...openrct2/object/WallObject.cpp 78% changes removed in Merge pull request #...

.../object/FootpathItemObject.cpp 81% changes removed in Merge pull request #...

...c/openrct2/object/RideObject.h 57% changes removed in Merge pull request #...

...penrct2/object/WaterObject.cpp 44% changes removed in Merge pull request #...

...bject/TerrainSurfaceObject.cpp 66% changes removed in Merge pull request #...

.../object/SceneryGroupObject.cpp 41% changes removed in Merge pull request #...

...nrct2/object/StationObject.cpp 58% changes removed in Merge pull request #...

...rct2/object/FootpathObject.cpp 76% changes removed in Merge pull request #...

Refactor CmdlineSprite to use new JSON library

src/openrct2/CmdlineSprite.cpp 43% changes removed in Merge pull request #...

     Refactor Theme to use new JSON library

     Refactor ObjectLoadError to use new JSON library

     Refactor Version to use new JSON library

     Update project build files

Update project readme

distribution/readme.txt 50% changes removed in Merge pull request #...

readme.md 50% changes removed in Update readme.md to ...

     Update OS requirements in readme.txt

     Update readme.md to make package list sorted

     Merge pull request #12941 from ZehMatt/code-cleanup

     Fixes from review feedback

     Merge Localisation/master into OpenRCT2/develop

     Merge pull request #12667 from mwnciau/json-refactor

Move storage into Formatter class and refactor usage

...enrct2/network/NetworkBase.cpp 67% changes removed in Apply review suggest...

...enrct2-ui/interface/Widget.cpp 67% changes removed in Apply review suggest...

src/openrct2/drawing/Text.cpp 50% changes removed in Use the Formatter fo...

Explicitly pass formatter arguments to ShowError and family

...nrct2-ui/windows/StaffList.cpp 67% changes removed in Apply review suggest...

Use the Formatter for News items

...nrct2/management/Marketing.cpp 50% changes removed in Apply review suggest...

     Apply review suggestions

Powered by Pull Assistant. Last update 4d3ba7a ... b3b9a34. Read the comment docs.

@vizipi
Copy link

vizipi bot commented Sep 8, 2020

Pull request analysis by VIZIPI

Below you will find who is the most qualified team member to review your code.
This analysis includes his/her work on the code included in this Pull request, in addition to their experience in code affected by these changes ( partly found within the list of potential missing files below )   Feedback always welcome

Reviewers with knowledge related to these changes

Match % Person Commit Count Common Files
32.34 % Aaron van Geffen 64 196
32.18 % frutiemax 63 195
30.86 % Michael Steenbeek 83 187
23.93 % Tulio Leao 68 145
22.77 % Duncan 45 138
17.66 % Matt 31 107

Potential missing files from this Pull request

files commonly committed with a subset of this pr, but not committed this time. (click to collapse)
FilePercentilerate
src/openrct2/ride/Vehicle.h50.00 %1 out of 2 times
src/openrct2/network/Network.cpp50.00 %1 out of 2 times
src/openrct2/drawing/Drawing.cpp50.00 %1 out of 2 times
src/openrct2/world/Duck.cpp50.00 %1 out of 2 times
src/openrct2/paint/Paint.cpp50.00 %1 out of 2 times
src/openrct2/rct2/RCT2.h50.00 %1 out of 2 times
src/openrct2/platform/Platform2.h50.00 %1 out of 2 times
src/openrct2-ui/drawing/engines/opengl/TextureCache.cpp50.00 %1 out of 2 times
src/openrct2/interface/Widget.h50.00 %1 out of 2 times
src/openrct2/cmdline/RootCommands.cpp50.00 %1 out of 2 times

Committed file ranks

(click to expand)
  • 73.38%[src/openrct2-ui/input/MouseInput.cpp]
  • 65.17%[src/openrct2/rct12/RCT12.h]
  • 65.17%[src/openrct2/world/TileElement.h]
  • 94.44%[src/openrct2-ui/windows/Cheats.cpp]
  • 56.82%[src/openrct2/object/ObjectFactory.cpp]
  • 45.30%[src/openrct2/rct12/RCT12.cpp]
  • 98.01%[src/openrct2/network/NetworkBase.cpp]
  • 0.00%[src/openrct2/world/Banner.cpp]
  • 56.82%[src/openrct2-ui/scripting/CustomListView.cpp]
  • 78.68%[data/language/en-GB.txt]
  • @guardrails
    Copy link

    guardrails bot commented Sep 9, 2020

    ⚠️ We detected security issues in this pull request:

    Hard-Coded Secrets (3)

    set(OBJECTS_SHA1 "151424d24b1d49a167932b58319bedaa6ec368e9")

    set(REPLAYS_SHA1 "AC67B93731B6246A31D9A8B01A6CA12AE98AE0D1")

    sha256 = "bc266ef589c60302105473499ac142dbf951847be15e65b692d165ce261aeae0";

    More info on how to fix Hard-Coded Secrets in General.


    Insecure Processing of Data (2)

    auto bufferWithColour = strcpy(gCommonStringFormatBuffer, highlighted ? "{WINDOW_COLOUR_2}" : "{BLACK}");

    std::strcpy(text, buffer.c_str());

    More info on how to fix Insecure Processing of Data in C.


    Insecure Use of Dangerous Function (1)

    FILE* fpipe = popen(command.c_str(), "r");

    More info on how to fix Insecure Use of Dangerous Function in C.


    👉 Go to the dashboard for detailed results.

    📥 Happy? Share your feedback with us.

    manuelVo and others added 23 commits October 26, 2020 22:48
    …onstruction
    
    Fix #13019: Prevent ghost trains from opening the construction window when crashing
    Incorrect argument was used when drawing the minimum excitement rating in the Objective Selection window.
    …13322)
    
    Issue was actually caused by loading RCT1 saves from certain rotations, and fixed by reseting sprite quadrants when loading. Wasn't an issue with RCT2 saves as litter screen coordinates are set directly from the save, rather than calculated based on rotation and sprite width/height.
    This only happens when a new ride type is added and the park is opened in the older version of the game where the ride type does not exist.
    
    Reworked so that invalid rides are not loadable. Force reload of title if current scenario is corrupted.
    duncanspumpkin and others added 29 commits December 12, 2020 23:18
    As not all objects load images in the same order the previous code could end up with sprite index's that were incorrect. There also was no reason to make the code object specific as we can just access the image table directly.
    * Moving all definitions from B...Actions to source
    
    * Moving all definitions from C...Actions to source
    
    * Moving all definitions from F...Actions to source
    
    * Moving all definitions from G...Actions to source
    
    * Moving all definitions from L...Actions to source
    
    * Moving all definitions from M...Actions to source
    
    * Moving all definitions from N...Actions to source
    
    * Moving all definitions from P...Actions to source
    * Refactor DUCK_STATE to use strong enum
    * Merge all cmdsprite global state into single struct
    
    * Move MakeEntries into a member function
    
    * Use std::optional for sprite file open
    
    * Move sprite_file_save to a member function
    
    * Make sprite_file_close a member function and rename open
    
    * Remove global variable
    
    * Make Entries a vector
    
    * Make Data a vector
    
    * Use FileStream for Open
    
    * Use FileStream for Save
    
    * Renmae Image Import/Export functions and cleanup
    
    * Extract out common item AddImage
    
    * Simplify SpriteFile::AddImage
    
    * Header and struct cleanup
    
    * Make suggested changes
    * Fix incorrect formatting of input and output of g2.dat
    
    * Fix entry offsets and empty data
    …anly (#13592)
    
    * Fix #13567: Cure guests of severe gluttony
    
    Incorrect assumption that bitscanforward itertated over 64 bits meant that food that was previously within the ExtraItemFlags would never get removed from the peeps inventory. bitscanforward function has been replaced with a 64bit version
    
    * Bump network version
    Includes:
    * Corkscrew Roller Coaster
    * Hypercoaster
    * Steel Wild Mouse
    * Spinning Wild Mouse
    * Water Coaster
    * Car Ride
    * Monster Trucks
    
    Some pieces are incorrectly labelled (log bumps and rotation control toggle),
    and need to be investigated further
    Restore extra cheat track pieces for some rides; intended to fix #13324
    @CartoonFan CartoonFan merged commit 92791f4 into CartoonFan:develop Dec 20, 2020
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ⤵️ pull 🔍 Ready for Review Pull Request is not reviewed yet
    Projects
    None yet