1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00
Commit Graph

19129 Commits

Author SHA1 Message Date
Michał Janiszewski
5688eb511d Use SDL_free to release SDL_RWops (#17591) 2022-07-22 22:28:58 +00:00
Raymond Zhao
71ad3af930 Use more smart pointers in openrct2-ui (#17582)
* Use more smart ptrs

* Use move instead of copy ctor
2022-07-22 11:48:43 +01:00
Karst
a74acee961 Fix: Wrong boundboxes for tunnels & terrain. (#17312)
* Edit Boundboxes

* Make all code consistent

Eight is the magic number
2022-07-21 07:57:49 +01:00
Raymond Zhao
f4df6be8ae Remove some calls to free (#17577) 2022-07-21 07:50:43 +01:00
Sadret
ed18ef1146 Fix #16392: Scenery on sloped surface is placed at wrong height. (#17343)
* Fix #16392: Scenery on sloped surface is placed at wrong height.

* fix SceneryQuadrantOffset

* fix valley land height

* Bump network version

* update replays

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2022-07-20 20:33:33 +01:00
Henry Cheng
3bad01a704 Fix #17553: Crash when moving invention list items to empty list (#17555)
* Fix content check

* Add change log entry

Co-authored-by: Duncan <duncans_pumpkin@hotmail.co.uk>
2022-07-17 07:12:29 +00:00
Cory Sanin
37a38af6a5 Fix: [#17503] Correct staff refactor issue (#17546) 2022-07-17 07:43:32 +01:00
8street
213696ea27 Add option to sell merchandise in random colours
Co-authored-by: 8street <nikolai_e@rambler.ru>
2022-07-12 22:20:49 +00:00
Hielke Morsink
fd5c5f546c Fix #16476: Crash on demolishing maze 2022-07-12 20:28:16 +00:00
Michael Steenbeek
1bf49f95ba Fix #17444: “Manta Ray” boats slowed down too much in “Ayers Rock” 2022-07-12 20:09:20 +02:00
underdoom
fe2f1bad5a Remove unwanted condition in ride_ratings_update_state_5 2022-07-12 19:58:40 +02:00
Michael Steenbeek
11614d7170 Merge pull request #17486 from duncanspumpkin/inventionWnd
Invention List Window Class Refactor
2022-07-12 19:49:03 +02:00
Gymnasiast
452206701a Drop support for old names for CAR_ENTRY_FLAG_* 2022-07-11 18:06:23 +02:00
Gymnasiast
8871760472 Rename car entry animation flags 2022-07-11 18:06:22 +02:00
Gymnasiast
06c368694a Update variables containing a CarEntry 2022-07-11 18:06:22 +02:00
Henry Cheng
3d16bca6ab Add notification for mismatched g2.dat entries size (#17496)
Added expected number of sprites to StringIds.h and a mismatch check upon loading g2.dat in Drawing.Sprite.cpp. If the mismatch catch fails, then an error is logged and a notification is displayed

* Add improper install warning
2022-07-08 06:57:24 +02:00
Huu Kim Nguyen
c949edd591 Crop giant screenshot to horizontal view-clip area 2022-07-06 23:11:43 +02:00
Michael Steenbeek
94a1351100 Default-initialise rct_g1_element, rct_g1_header (#17501) 2022-07-04 21:42:51 -03:00
underdoom
46b3687a2d Simplify tile element initialisation 2022-07-04 21:59:09 +02:00
spacek531
312ad3e3ce Warn user if unsupported vehicle or element used 2022-07-04 19:06:59 +00:00
Gymnasiast
be518f48e3 Release v0.4.1
- Feature: [#16825] Add Alpine Coaster track type.
- Feature: [#17011] Option to show ride vehicles as separate entries when selecting a ride to construct.
- Feature: [#17217] Add FLAC and OGG/vorbis as supported audio formats for ride music objects.
- Feature: [#12328, #17418] Add vehicles for the Hybrid Coaster, Single-Rail Roller Coaster and Classic Mini Roller Coaster.
- Improved: [#7983] The red colour in the ride stat screen and the ride graphs now corresponds better to negative effects on a ride’s stats.
- Improved: [#13966] Music Style dropdown is now sorted by name.
- Improved: [#16978] Tree placement is more natural during map generation.
- Improved: [#16992] The checkbox in the visibility column of the Tile Inspector has been replaced with an eye symbol.
- Improved: [#16999] The maximum price for the park entry has been raised to £999.
- Improved: [#17050] Transparency can be enabled directly without needing see-through enabled first.
- Improved: [#17059] Show Tile Inspector usage hint when nothing is selected.
- Improved: [#17199] Allow creation of Spiral Slide reskins.
- Improved: [#17242] More natural looking shorelines in map generator.
- Improved: [#17328] Parks can now be resized into rectangular shapes from the map and map generation windows.
- Change: [#16952] Make “Object Selection” order more coherent.
- Change: [#17002] Weather no longer resets when converting a save to scenario.
- Change: [#17294] New ride window remembers scroll position per tab instead of highlighted ride.
- Removed: [#16864] Title sequence editor (replaced by plug-in).
- Removed: [#16911, #17411] Residual support for pre-Vista Windows systems.
- Fix: [#13997] Placing a track design interferes with other players building a ride.
- Fix: [#15787] When deselecting "Show banner text in upper case", the banners remain upper case for 10 seconds.
- Fix: [#16539] CustomListView header not clickable when listview is scrolled.
- Fix: [#16799] Browsing “Up” in the Load Save window shows no files, only folders.
- Fix: [#16934] Park size displayed incorrectly in Park window.
- Fix: [#16974] Small scenery ghosts can be deleted.
- Fix: [#16989] Re-focusing maximised window triggers a restore and maximise.
- Fix: [#17005] Unable to set patrol area for first staff member in park.
- Fix: [#17017] [Plugin] Crash when using tile element properties that require a valid ride to be linked.
- Fix: [#17073] Corrupt ride window and random crashes when trains have more than 144 cars.
- Fix: [#17080] “Remove litter” cheat does not empty litter bins.
- Fix: [#17099] Object selection thumbnail box is one pixel too tall.
- Fix: [#17104] Changing map size does not invalidate park size.
- Fix: [#17157] Crash when browsing “Up” to folder with CJK characters in its name.
- Fix: [#17187] Text input window does not resize correctly.
- Fix: [#17197] Segfault when extracting files from the GOG installer.
- Fix: [#17205] Map generator sometimes crashes when not all standard terrain objects are available.
- Fix: [#17221] Object ghosts and tooltips follow invisible cursor when moving the viewport by right-click dragging.
- Fix: [#17255] Cursor position is incorrect when adjusting terrain and water height.
- Fix: [#17257] [Plugin] Add tertiary colour to large scenery scripting API.
- Fix: [#17261] Hand cursor position is incorrect when dragging items in the Inventions List window.
- Fix: [#17292] Rows in shortcut key list stay highlighted when cursor leaves list.
- Fix: [#17295] Pause status not cleared when loading a scenario made from a converted paused save.
- Fix: [#17310] Reversed reversible vehicles not imported properly when loading RCT1 parks.
- Fix: [#17335] [Plugin] Documentation has an incorrect type for PixelData ‘data’ attribute.
- Fix: [#17337] Air Powered Vertical Coaster trains not imported properly when loading RCT1 parks.
- Fix: [#17346] Surface height markers are concealed by sprites of same surface.
- Fix: [#17369] [Plugin] ‘Car.travelBy()’ moves other cars as well.
- Fix: [#17377] When building the park entrance before opening the Footpaths window, the path will be invisible.
- Fix: [#17381] Air Powered Vertical Coaster stat penalty is wrong.
- Fix: [#17399] Guests never generate the being watched thought.
- Fix: [#17433] Wrong T-shirt colours for guests on a Twist ride.
- Fix: [#17450] Ducks can swim on three-corners-up land tile.
- Fix: [#17461] Footpath Railing tooltip showing incorrect tooltip.
- Fix: [#17464] Green Tarmac footpath is not available in the Track Designer.
- Fix: [#17466] New object types not packed in save files.
- Fix: [#17481] Roto-drop cars try going up to top pieces that are ghosts or belong to other rides.
2022-07-04 18:53:36 +02:00
Duncan
5d896c65b5 Refactor Guest Window to Class 2022-07-03 22:00:37 +02:00
Hielke Morsink
43a98680ac Fix: Fallback when selecting RCT1 titles while it's not installed 2022-07-03 16:39:27 +02:00
Hielke Morsink
d06f564506 Clean up some title sequence code 2022-07-03 16:20:23 +02:00
Hielke Morsink
1578cd816a Fix #17493: Title sequence defaults to RCT1
Even while the default config value is "*OPENRCT2", the game failed to find this config ID and fell back to the first sequence in the list instead.
2022-07-03 16:19:42 +02:00
Cory Sanin
05f1007dd9 Fix #16989: Re-focusing maximised window triggers a restore and maximise
Fixes #16989 by removing an SDL hack. Originally added to address issue #2158, I can't reproduce this issue with the hack removed. Tested on Linux (by CorySanin) and Windows (by Broxzier).
2022-07-02 21:48:43 +02:00
Artem Yanenko
019ed54a48 Fix #17377: Park entrance can be placed without path in Scenario Editor 2022-07-02 14:02:27 +00:00
Sadret
544770c0fb Fix #16539: CustomListView header unclickable when scrolled 2022-07-02 12:34:12 +02:00
Henry Cheng
2246851f6b Fix #17464: Green Tarmac footpath does not show up in Track Designer 2022-07-02 12:29:41 +02:00
duncanspumpkin
8492453702 Refactor to conform to style. Move uncommon items out of rct_window 2022-07-02 07:53:46 +01:00
duncanspumpkin
144cd5ada7 Complete moving into class 2022-07-02 07:28:16 +01:00
Gymnasiast
d42e67ddfe Reformat the ifs, remove unnecessary parameter 2022-07-01 23:26:40 +02:00
Gymnasiast
d936aa48e1 Fix #17481: Roto-drop cars try going up to the wrong top pieces 2022-07-01 18:23:03 +02:00
duncanspumpkin
22f50b8199 Start creating invention list class 2022-07-01 14:57:24 +01:00
Hielke Morsink
9c595ccaa7 Replace 16 with new constant WATER_HEIGHT_STEP 2022-07-01 00:09:27 +02:00
Hielke Morsink
8e509d9669 Remove ObjectType++ operator, ensure ObjectTypes size 2022-06-30 23:13:40 +02:00
Duncan
43562a6899 Window Class Refactor: Invention List Drag (#17415)
* Start working on drag

* Finish moving invention drag into window class

* Refactor drag item into a window variable

* Remove rct2 comment
2022-06-30 10:25:18 +01:00
Hielke Morsink
ac7331f878 Include <array> and use page count for size 2022-06-30 07:25:24 +00:00
Duncan
d6e188d289 Park Window to class (#17364)
* Start base of class

* Start moving things into class

* Finish porting over

* Refactor to conform more with style

* Add no discard to imageid

* Fix objective window position

* Fix audio on viewport

* Make further fixes

* Move nodiscard again
2022-06-30 05:37:43 +01:00
Karst
7345dd58fe Fix: Footpath Railing tooltip showing incorrect tooltip (#17461)
* Fix Footpath Railing tooltip

* Add changelog entry

* Update src/openrct2-ui/windows/Footpath.cpp

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-06-28 21:15:44 -03:00
Henry Cheng
36f43285ad Close #16688: Remove unused variables on RideConstruction (#17453)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-06-28 21:15:15 -03:00
Hielke Morsink
e39fd9226f Merge pull request #17426 from Broxzier/refactor/variadic-title-commands 2022-06-28 22:55:47 +02:00
Hielke Morsink
2936de5c86 Replace hardcoded 255/0xFF with TUNE_ID_NULL 2022-06-28 22:55:25 +02:00
Hielke Morsink
79ae03fc5e Rename command to avoid ghosting
It's curious that gcc complains about ghosting here, since the lambda has its own stack pointer, and doesn't capture the outer `command`.
2022-06-28 21:57:29 +02:00
Hielke Morsink
8e439b9895 Zero-initialize all command arguments 2022-06-28 21:57:29 +02:00
Hielke Morsink
6a017ac761 use std::decay helper type 2022-06-28 21:57:28 +02:00
Hielke Morsink
0e5cfce073 Maintain centre view position when screen resizes 2022-06-28 21:57:28 +02:00
Hielke Morsink
43f49f2483 Fix: commands used as tags don't save in scripting 2022-06-28 21:57:28 +02:00
Hielke Morsink
2b52df87ce Move scripting command names to command classes
This way, new commands are required to have this field, or a compiler error will occur.
2022-06-28 21:57:27 +02:00
Hielke Morsink
c8537d57b3 Note for commands used as tags 2022-06-28 21:57:27 +02:00