Matt
4c11e11fe2
Rename PeepActionType None1 and None2
2021-05-13 18:05:55 +03:00
Michael Steenbeek
d35b28325a
Merge pull request #14641 from duncanspumpkin/split2
...
Refactor of misc entity functions
2021-05-13 16:50:02 +02:00
zrowny
f6f5b41b76
Correct palette indexes of remap colors in image importer
...
The codes that finds the closest entry that isn't used for remapping has the indices of remappable colors slightly off, and would make some colors in the imported image remappable even though they shouldn't have been.
Comment in header file describing the standard palette corrected as well.
2021-05-13 16:30:35 +02:00
Gymnasiast
8c374b07e6
Make litterNames static
2021-05-13 16:26:23 +02:00
Gymnasiast
52918736d0
Rename Sick to Vomit
2021-05-13 16:26:23 +02:00
duncanspumpkin
8282fde827
move Litter functions into class and refactor
2021-05-13 16:11:13 +02:00
duncanspumpkin
24a5446e8c
Move particle functions into class
2021-05-13 16:09:26 +02:00
duncanspumpkin
243142664e
Move balloon methods into class
2021-05-13 16:09:26 +02:00
duncanspumpkin
c345396765
Move duck method into class
2021-05-13 16:09:26 +02:00
Michael Steenbeek
d17443b7b0
Clean up shop item prices
2021-05-13 13:43:31 +02:00
Basssiiie
5480c99e0b
Rename previously unknown vehicle flags, and json strings to camelCase
2021-05-13 13:34:32 +02:00
Duncan
816bf827ab
Split off a number of entity files into separate headers ( #14629 )
...
* Split off a number of entity files into seperate headers
* Get compiling
* Update copyright date
2021-05-13 07:56:24 +01:00
ZxBiohazardZx
36b2742c19
Change Vehicle Rotation namings in accordance with OpenRCT2 Codestyle ( #14616 )
...
* Code Refactor: Rename vehicle_sprite_type to Pitch
In some of the issues the vehicle_sprite_type is used to check for properties in regards to the pitch of the vehicle.Similarly bank_rotation is used to provide information on the Roll property. This is not in alignment with the https://github.com/OpenRCT2/OpenRCT2/wiki/Coding-Style and makes it harder to refactor other elements of the codebase and makes for undesired nested logics.
This PR also includes the change from rename bank_rotation to Roll in alignment with the OpenRCT2 Coding Style
Related to PullRequest #11956
* Apply formatting
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2021-05-12 12:38:46 +01:00
Duncan
00c9c07c11
Fix #14589 : Crash in sign window after tileelement reorg ( #14626 )
...
TileElement pointers must always be revalidated every tick otherwise a tileelement reorg will cause them to point at the wrong element
2021-05-11 14:52:38 +01:00
Ryan
8a282fa31c
Add more properties to Park API ( #14620 )
...
* Add more properties to Park API
* Add new feature to changelog
2021-05-11 12:46:15 +01:00
Duncan
b1bed8e3aa
Peep Guest/Staff Split: Actually move fields from split ( #14495 )
...
* Actually move fields from split
2021-05-11 12:41:13 +01:00
Margen67
66f3f5d52e
Partially solve #5165 ( #14617 )
2021-05-11 12:27:39 +01:00
frutiemax
0ac77f8744
Part of #12100 : Use ScreenCoordsXY for gfx_draw_line_on_buffer ( #14305 )
2021-05-11 08:16:59 -03:00
Duncan
ae66592c2b
Remove old serialiser of steam particle ( #14624 )
...
* Remove old serialiser of steam particle
accidentally missed this in the network serialiser branch
* Update replays
2021-05-11 09:36:00 +01:00
Duncan
975ed665f8
Fix opengl extra zoom bugs ( #14601 )
...
* Fix #14449 : Surface smoothing not working at extra zooms
Caused by two issues. One was spotted by @AaronVanGeffen in that surface smoothing was turned off. The other was caused by a bug in the opengl renderer that went unnoticed due to never being hit during normal play.
* Fix merrygoround and enterprise extra zoom peep drawing
* Add changelog entry
2021-05-10 12:43:46 -03:00
Ryan
eb9ed63b0e
Fix some actions for plugins ( #14607 )
...
* Fix some actions for plugins
If an action doesn't have an AcceptParameters method, the paramaters passed in executeAction will be ignored and the action will fail.
* Change plugin parameter names
* Increment plugin API version
2021-05-09 22:04:03 +01:00
Duncan
d46e4a9bb1
Network serialiser for entities ( #14541 )
...
* Start a network serialiser for entities
will be used only for checksums and replay diffs
* Continue work
* Use the new serailser for checksums
* Use new serialiser for replays
* keep compilers happy
* Try create checksum stream
* Fix compiling
* Split off class into seperate file
* Update Xcode project
* Increment network version
* Fix pragma mistake
* Fix none network builds
* Update replays
* Improve ChecksumStream and use FNV internally
* Small cleanups
* satisfy compilers
* Revert change of checksum size to simplfy rerecording
* Zero initialise data
* Fix serialiser
* Update replays again
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
Co-authored-by: Matt <m.moninger.h@gmail.com>
2021-05-09 19:12:44 +01:00
Ted John
c63e072974
Fix logging of replay info to stdout ( #14430 )
...
Use Console::WriteLine and replace \n with \r\n.
2021-05-09 19:11:04 +01:00
Michael Steenbeek
984a660ad7
Fix RCT1 American-style Steam Trains import
2021-05-09 18:53:35 +02:00
ζeh Matt
08ebc1ab41
Fix #14587 : Send queued packets before disconnecting the client ( #14596 )
...
* Fix #14587 : Send queued packets before disconnecting the client
* Log better information during network authentication
2021-05-09 07:56:20 +01:00
Ted John
14845b61e5
Merge pull request #14561 from IntelOrca/increase-paint-structs
...
Dynamically allocate paint structs and remove 4000 per column limit
2021-05-08 23:36:40 +01:00
Ririan
417e5ae7d5
Fix Duplicate Entries in Free Food Ad Campaign
...
When opening and closing the dropdown box multiple times while attempting to create an ad campaign for free food vouchers, the game would duplicate the available food items in the list each time.
I discovered that it was because the vector wasn't being cleared each time the list was populated it, so an easy fix is to clear it before continuing.
2021-05-07 14:53:53 +02:00
ZxBiohazardZx
ad1bfe0f49
Fix #14582 : Vehicle::GetCar function causing server crash ( #14583 )
...
Co-authored-by: @RoyGherbel
2021-05-07 13:23:37 +01:00
Ted John
7854d94599
Fix benchmarking
2021-05-03 02:38:42 +01:00
Ted John
bba967d62e
Start working on benchmark changes
2021-05-02 22:02:09 +01:00
Ted John
1caf47e45e
Use unrolled linked list for paint entries
2021-04-28 20:33:51 +01:00
Basssiiie
6c65105261
Add getter for current plugin api version ( #14538 )
2021-04-27 21:08:56 -03:00
Ted John
2a0535d966
Fix #13986 : OpenGL: Track preview, flip/rotate does not update thumbnail
...
Invalidate SPR_TEMP so that it is not cached in the OpenGL drawing engine.
2021-04-27 11:30:52 +02:00
Ted John
cb6d471560
Increase paint struct limit by using shared pool
2021-04-27 01:27:49 +01:00
Michael Steenbeek
c9943ee11d
Merge pull request #14458 from Gymnasiast/backport-nsf
...
Backport ride limit refactors from new-save-format
2021-04-20 23:25:53 +02:00
Hielke Morsink
7525f5d5da
Fix #14493 : isHidden broken for elements with baseheight > 32 ( #14499 )
2021-04-19 19:44:11 +02:00
Duncan
8eabdf8c8f
Split guest and staff peep variables ( #14462 )
...
* Split guest and staff peep variables
* Move variable location
* Increment network version
* Update replays
2021-04-18 17:48:21 +01:00
ceeac
a8702dc2c8
Fix compile error when DEBUG_LEVEL=1
2021-04-18 12:57:46 +02:00
Gymnasiast
1c5af028e1
Fix placing entrance/exit for ride ID >= 256
2021-04-16 18:56:16 +02:00
Gymnasiast
d857dca36d
Replace hardcoded max number of trains per ride
2021-04-16 18:56:16 +02:00
Michael Steenbeek
bbf33b6577
Fix serialisation of PlaceParkEntranceAction
2021-04-15 21:32:26 +02:00
Gymnasiast
084bfe0d48
Remove global from PlaceParkEntranceAction
2021-04-14 15:03:09 +02:00
Gymnasiast
5e28586a1c
Create ProvisionalFootpath struct
2021-04-14 14:56:28 +02:00
Gymnasiast
85157d8604
Move some globals to Footpath window
2021-04-14 14:31:10 +02:00
Hampus
1b64fc871b
Close #13805 : Refactor Sign window to class ( #14417 )
...
* Refactor window to class: Sign
Fix: Refactor window to class: Sign #13805
2021-04-12 08:53:58 -03:00
Jacob Caudill
86e9fe6f19
Close #13788 : Refactor News to new Window framework ( #14404 )
...
* Refactor News for new Window framework
2021-04-12 08:53:06 -03:00
Duncan
a9e1f2e89c
Remove SpriteBase::flags ( #14460 )
...
* Remove SpriteBase::flags
* Increment network version
* update replays
2021-04-11 18:02:19 +01:00
Michał Janiszewski
7d2823d1f0
Merge pull request #14313 from adam-bloom/cmake_macos_app_bundle
...
cmake macOS .app bundle
2021-04-06 20:43:30 +02:00
Michael Steenbeek
9b2c946484
Merge pull request #14436 from Gymnasiast/fix/14409
...
Fix #14409 : NPE when demolishing banner
2021-04-03 23:39:38 +02:00
Gymnasiast
79302e88a5
Rename _tileElement to _bannerElement
2021-04-03 22:43:57 +02:00
Michael Steenbeek
7c73e271ad
Name num_sheltered_sections flags
2021-04-03 22:17:57 +02:00
Gymnasiast
f5ec127eaf
Fix #14409 : NPE when demolishing banner
2021-04-03 22:09:24 +02:00
Gymnasiast
943e89d5a6
Use BannerElement instead of TileElement
2021-04-03 22:07:11 +02:00
Ted John
ea961aed93
Fix #14428 : No text visible in in-game console window ( #14429 )
2021-04-03 00:12:30 +01:00
Michael Steenbeek
0e327c86e4
Fix ratings calculation taking 30 minutes
2021-04-02 22:57:36 +02:00
A.N
4d3328c7bb
Add preprocessor directives to stop unused variable/function warnings. ( #14422 )
2021-04-02 14:41:11 +02:00
Duncan
b65f12f1cf
Use correct null value ( #14421 )
...
* Use correct null value
* Increment network version
2021-04-02 13:13:33 +01:00
adam-bloom
e45d002562
Remove unnecessary verify_app function
...
fixup_bundle performs bundle verification, so this was a duplicate
2021-04-01 22:37:09 -06:00
adam-bloom
dc0d77a951
include shaders (required for OpenGL)
2021-04-01 22:00:04 -06:00
adam-bloom
77ea64a5ef
function for downloading object/sequence/dependency zips
2021-04-01 22:00:04 -06:00
adam-bloom
06e0e3db51
add MACOS_BUNDLE cmake option to build self-contained app bundle
2021-04-01 22:00:04 -06:00
Michael Steenbeek
7344b7fbfd
Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL ( #14411 )
...
* Replace RIDE_ENTRY_INDEX_NULL with OBJECT_ENTRY_INDEX_NULL
Ride entries are objects like any other, so there is little point having separate constants.
* Use ride_id_t in many more places
* Change RIDE_ID_NULL to 0xFFFF
* Increment network version
* Update replays
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2021-04-01 16:02:57 +01:00
Michael Steenbeek
cbefc4fe38
Fix #14412 : NPE in vehicle_create_car()
2021-04-01 11:26:14 +02:00
Michael Steenbeek
9ee3c81768
Merge pull request #14397 from Gymnasiast/refactor/hardcoded-terrain-constants
...
Remove hardcoded terrain style constants from RCT1 and MapGen
2021-03-31 20:18:12 +02:00
Gymnasiast
d7809c26f5
Use string_view instead of const char*
2021-03-31 19:22:09 +02:00
Gymnasiast
b627dbd3a4
Apply review requests
2021-03-31 19:15:33 +02:00
Gymnasiast
d7d402747e
Add Vietnamese language
2021-03-31 14:26:31 +02:00
Tulio Leao
465bcf768c
Merge pull request #14394 from tupaschoal/coords1
...
Use more ScreenCoordsXY on openrct2-ui
2021-03-30 19:49:51 -03:00
Michael Steenbeek
4014fbe861
Add missing call to gfx_unload_csg()
2021-03-30 22:49:00 +02:00
Tulio Leao
7e78061e16
Use ScreenCoordsXY on InGameConsole
2021-03-29 09:34:11 -03:00
Tulio Leao
bb8c275df6
Remove raw coords gfx_fill_rect_inset overload
2021-03-29 09:34:11 -03:00
Tulio Leao
08e182fba2
Use ScreenCoordsXY on Graph methods
2021-03-29 09:34:11 -03:00
Tulio Leao
eab297f9ff
Use ScreenCoordsXY on Graph::Draw
2021-03-29 09:34:11 -03:00
Tulio Leao
d34dc3c924
Increase usage of ScreenRect' gfx_fill_rect_inset on Finances
2021-03-29 09:34:09 -03:00
Tulio Leao
090aadb647
Use ScreenCoordsXY on window_guest_stats_bars_paint
2021-03-29 09:31:05 -03:00
Tulio Leao
aa88c8d181
Increase usage of gfx_fill_rect_inset that uses ScreenRect
2021-03-29 09:31:05 -03:00
Tulio Leao
d5b5c10e80
Use ScreenCoordsXY for window_game_bottom_toolbar_draw_park_rating
2021-03-29 09:31:04 -03:00
Tulio Leao
2f608c32ab
Use ScreenCoordsXY for window_ride_maintenance_draw_bar
2021-03-29 09:31:04 -03:00
Michał Janiszewski
ed40badcb1
Initialise variable to fix Launchpad ppc64el builds
...
`src/openrct2-ui/windows/TopToolbar.cpp:2112:13: error: ‘side’ may be used uninitialized in this function [-Werror=maybe-uninitialized]`
2021-03-29 09:52:52 +02:00
Duncan
ee03ab71d7
Reorganise EntityImport for S4 to follow S6/park style ( #14398 )
2021-03-28 21:35:53 +01:00
Gymnasiast
b3bbdcbfd5
Remove hardcoded terrain style constants from RCT1 and MapGen
2021-03-27 17:34:10 +01:00
Gymnasiast
22ba7a2bc1
Fix drawing; fix formatting
2021-03-27 15:56:01 +01:00
calvin
6342fd3d9a
Display track file path in track selector
2021-03-27 15:11:08 +01:00
Geoff B
6c8493cb69
Close #14253 : Replace font size tokens with adjusted DrawText calls
2021-03-27 14:40:17 +01:00
Michael Steenbeek
713410ab6c
Apply changed strings from the new-save-format branch
2021-03-27 14:31:13 +01:00
Tulio Leao
2d1557e48e
Merge pull request #13444 from tupaschoal/extract-ifdefed-functions
...
Extract ifdefed functions
2021-03-27 10:00:01 -03:00
Duncan
619b2afc15
Compute checksum by entity type ( #14383 )
...
* Compute checksum by entity type
* Copy only the entity size
* Update replays and network version
2021-03-27 09:36:41 +00:00
Tulio Leao
e23eaa164b
Extract RequireNewWindow to Platform
2021-03-26 23:17:01 -03:00
Tulio Leao
62fc4c8034
Extract ResolveCasing to Platform
2021-03-26 23:17:01 -03:00
Tulio Leao
c7ae064a4c
Extract ShouldIgnoreCase to Platform
2021-03-26 23:17:01 -03:00
Tulio Leao
9a071aef76
Extract GetAbsolutePath to Platform
2021-03-26 23:17:01 -03:00
Duncan
177b5e1b08
Add plugin hook for guest generation ( #14107 )
...
* Add plugin hook for guest generation
* Update api version and add ts entry
2021-03-26 05:49:24 +00:00
Duncan
a4a08ea8b4
Reorg entity import to follow export design ( #14177 )
...
* Add CreateEntityAt
* Reorg entity import to follow export design
* Move definitions just because gcc refuses to fix bugs
* Use CreateEntityAt
* Fix freeid allocation
* Streamline freeId reset and add statics
2021-03-26 05:48:38 +00:00
Tulio Leao
f15bbd220a
Extract IsPathSeparator to Platform
2021-03-25 23:45:01 -03:00
Duncan
0a47d2157a
Use more specific types where appropriate ( #14388 )
...
It takes marginally more time to get a Peep than a Guest/Staff so may as well go straight to the correct type
2021-03-25 08:44:25 +00:00
Duncan
1be7457e30
Use entity list rather than MAX_ENTITIES loop ( #14384 )
...
* Use entity list rather than MAX_ENTITIES loop
* Use guest for variable names
2021-03-25 08:08:26 +00:00
TELK
040a3eb144
Fix part of #7489 : Shortcuts work incorrectly for vertical tracks
2021-03-24 20:32:03 +01:00
Michael Steenbeek
19b1958822
Merge pull request #14332 from DKarandikar/develop
...
Close #13749 : Move Banner window to new framework
2021-03-24 20:30:42 +01:00
Duncan
977d05ba29
Entity type5: Remove peep assigned type ( #14380 )
...
* Remove users of AssignedPeepType
* Remove AssignedPeepType
Field no longer required due to changes to EntityType
* Move enum to the RCT12 header
* Increment network version
* Update replays
2021-03-24 08:54:05 +00:00
Michael Steenbeek
a5a63f839a
Allow passing ImageId into gfx_draw_sprite()
2021-03-23 11:58:09 +01:00
Duncan
ccfa22c230
Entity type4: Remove MiscEntityType and add FountainType ( #14344 )
...
* Move jumpingfountain type out of misc entity type
* Remove SubType for MiscEntities as it is no longer required
* Update replays
* Apply review comments
* Increment network version
2021-03-22 21:24:50 +00:00
Daniel Karandikar
d4efbdf531
Refactor InitTileElement
...
Break loop when going to go outside of Tile
2021-03-22 19:23:36 +00:00
Daniel Karandikar
5ef750a879
Tidy up BannerWindow::Initialise
2021-03-22 19:23:34 +00:00
Daniel Karandikar
4c1d35478c
Tidy Window.cpp
2021-03-22 19:23:31 +00:00
Daniel Karandikar
1551389bf5
camelCase for local vars
2021-03-22 19:23:28 +00:00
Daniel Karandikar
248d6a0683
Prepend _ to private member fields
2021-03-22 19:23:20 +00:00
Michael Steenbeek
b275e7b82e
Fix #14294 : NPE in map_animation_invalidate_wall_door()
2021-03-20 17:09:37 +01:00
Michael Steenbeek
9132c9ad8d
Fix #14153 : NPE in Guest::UpdateRideLeaveVehicle()
2021-03-20 17:09:19 +01:00
Michael Steenbeek
d1267a276f
Merge pull request #14355 from duncanspumpkin/fix_14353
...
Fix #14353 . Provide a buffer for text input
2021-03-20 14:58:02 +01:00
Michael Steenbeek
430711a33b
Cache HasFilePicker() value in UiContext
2021-03-20 14:51:15 +01:00
Cory Sanin
f1cd58c292
Fix #14330 : join_server uses config default_port
2021-03-20 14:09:47 +01:00
duncanspumpkin
820668d0aa
Use unsafe strlen for platforms without strlen_s
2021-03-20 07:27:23 +00:00
duncanspumpkin
ee575d5b8c
Use std::vector to prevent violations of std string
2021-03-20 07:22:00 +00:00
duncanspumpkin
07b2945c5b
Fix #14353 . Provide a buffer for text input
2021-03-19 18:25:14 +00:00
Michael Steenbeek
a018787c91
Fix #14295 : Assertion hit in Audio.cpp
2021-03-19 11:58:50 +01:00
Michael Steenbeek
2b9a3424b0
Fix #14347 : Crash when inserting a tile element without room
2021-03-18 23:28:43 +01:00
Michael Steenbeek
850e7431c3
Merge pull request #14328 from Gymnasiast/fix/14315
...
Fix #14315 : Crash when renaming APVC in Korean
2021-03-18 22:49:13 +01:00
Duncanspumpkin
0957542503
Implement C++ solution to truncate UTF8 strings
2021-03-18 22:14:12 +01:00
Maximilian Bottin
6f28914f61
Fix #14296 : Allow early scenario completion in multiplayer
2021-03-18 20:30:11 +01:00
Michael Steenbeek
e89c37e7ae
Fix #11829 : Glitches when using mismatched csg1/csg1i
2021-03-17 13:40:45 +01:00
Duncan
4d152d97d2
Use entity list size rather than distance ( #14343 )
...
After the refactors with the entity lists we no longer require to walk the whole entity list to get the number of entries.
2021-03-17 08:55:10 +00:00
Duncan
129ef12d6d
Refactor paint entity ( #14342 )
2021-03-17 08:35:39 +00:00
Duncan
df7a284822
Entity type 2: Remove sprite_identifier ( #14334 )
...
* Start changing the underlying type
* Further work
* Complete refactor
* Further cleanup
* Remove pointless check
* Increment network and plugin versions
* Add defaults
* Further defaults
* Fix test paint
* Update replays
2021-03-17 08:04:41 +00:00
Duncan
6ec379cd0e
Split Entity Lists by Entity type ( #14326 )
...
* Make initial changes to add entity type
* Make further corrections
* Revert header changes
* Fix mistakes
2021-03-16 11:18:06 +00:00
Daniel Karandikar
1229ce6b22
Refactor Banner to use new Window framework
...
Also tidy up a couple of bits of duplicated code
Pulled out into CreateViewport method and tileElement member
2021-03-15 22:59:19 +00:00
Michael Steenbeek
96524e2b4a
Convert Land window to class
2021-03-15 23:08:00 +01:00
Gymnasiast
645685de18
Fix #14315 : Crash when renaming APVC in Korean
2021-03-15 21:27:13 +01:00
Michael Steenbeek
706fdae588
Fix #13894 : Block brakes do not animate
2021-03-15 20:37:08 +01:00
Duncan
5474194905
Implement train view and remove linked_list_index ( #13956 )
...
* Make train manager view
* Remove linked list index field
* Remove merge mistake
* Fix further rebase errors
* Rename and add comments
* Update replays
* Fix Xcode project
* Increment network version
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2021-03-15 08:13:00 +00:00
Tulio Leao
f372117939
Extract GetLastModified to Platform
2021-03-14 09:36:44 -03:00
manatails
4fe5b1dc79
Add "Vandals stopped" stat for security guards ( #14071 )
...
* Add a stat for security guards: Vandals stopped
* Update src/openrct2-ui/windows/Staff.cpp
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
* Update src/openrct2/peep/Guest.cpp
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
* No need to update screenCoords at the last line
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
* Add changelog entry and bump network version
* Update to new UI code
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2021-03-14 09:18:35 -03:00
frutiemax
8acdcca712
Part of #12098 : Use ScreenRect on gfx_filter_rect in Error.cpp ( #14288 )
2021-03-13 22:03:13 -03:00
frutiemax
cd9873a78d
Use ScreenLine on gfx_draw_line_software
2021-03-13 16:52:58 +01:00
Michael Steenbeek
85c59b88be
Convert New Campaign window to a class
2021-03-13 16:51:54 +01:00
Ted John
7793f4c548
Update backtrace token for 0.3.4
2021-03-13 14:11:58 +01:00
Gymnasiast
3f65f282d7
Release v0.3.3
...
- Feature: [#12110 ] Add Hybrid Coaster (Rocky Mountain Construction I-Box) track type.
- Feature: [#12999 ] .sea (RCT Classic) scenarios are now listed in the “New Scenario” dialog.
- Feature: [#13000 ] objective_options command for console.
- Feature: [#13096 ] Add Esperanto translation.
- Feature: [#13164 ] Add 'Objective options' to Cheats menu.
- Change: [#9568 ] Change lift sounds of Reverser Roller Coaster and Compact Inverted Coaster to better fitting ones.
- Change: [#13160 ] The lay-out of the Park Cheats tab has been improved.
- Fix: [#1324 ] Last track piece map selection still visible when placing ride entrance or exit (original bug).
- Fix: [#3200 ] Close Construction window upon selecting vehicle page.
- Fix: [#4022 ] Fix Mac cursor offset on launch
- Fix: [#4041 ] Garbled park option on scenario editor with custom theme.
- Fix: [#4865 ] Offer an option to disable inhibiting the monitor power.
- Fix: [#5178 ] Lighting effects cannot be disabled in software mode
- Fix: [#5904 ] Empty errors on tile inspector base height change.
- Fix: [#6086 ] Cannot install existing track design with another name.
- Fix: [#6614 , #8623 ] Colours are distorted when using OpenGL with Intel integrated graphics drivers.
- Fix: [#7443 ] Construction arrows pulse at irregular intervals.
- Fix: [#7518 ] Water isn't cut down by view clipping tool.
- Fix: [#7748 ] Tooltips would not timeout for normal UI elements.
- Fix: [#8015 ] RCT2 files are not found when put into the OpenRCT2 folder.
- Fix: [#8957 ] Error title missing when building with insufficient funds
- Fix: [#10186 ] Placing multiple saved rides ignores design name (original bug).
- Fix: [#12368 ] Desync due to ghost station pieces affecting changing ride settings.
- Fix: [#12940 ] Windows cause issues with snow drawing.
- Fix: [#13019 ] Simulated trains sometimes open construction window when they crash.
- Fix: [#13021 ] Mowed grass and weeds don't show up in extra zoom levels.
- Fix: [#13024 ] Console cursor does not correctly render at current cursor position.
- Fix: [#13029 ] Not all Junior Roller Coaster pieces are shown when "Show all track pieces" cheat is enabled.
- Fix: [#13044 ] Rides in RCT1 saves all have "0 customers per hour".
- Fix: [#13074 ] Entrance and exit ghosts for mazes not being removed.
- Fix: [#13083 ] Dialog for renaming conflicting track design crops text out.
- Fix: [#13097 ] Missing direction arrow for stations
- Fix: [#13098 ] UI buttons for entrance and exit don't toggle according to them being built.
- Fix: [#13098 ] Maze can still be constructed while placing entrance and exit (original bug).
- Fix: [#13118 ] Closing construction window resets ride viewport.
- Fix: [#13129 ] Missing error message when waiting for train to leave station on the ride measurements graph.
- Fix: [#13138 ] Fix logical sorting of list windows.
- Fix: [#13158 ] Cursors are drawn incorrectly in text input fields.
- Fix: [#13222 ] Vehicle collision causes negative number of passengers (original bug).
- Fix: [#13226 , #7280 ] No error is shown when attempting to load a corrupted save.
- Fix: [#13266 ] Plugin API: Deleting key of sharedStorage not working.
- Fix: [#13278 ] Desync caused by ghost tiles changing the ride mode.
- Fix: [#13289 ] Litter and vomit sometimes not loading with RCT1 saved game or scenario
- Fix: [#13292 ] Impossible excitement rating requirements with finish building 5 coasters goal
- Improved: [#13023 ] Made add_news_item console command last argument, assoc, optional.
- Improved: [#13098 ] Improvements to the maze construction window user interface
- Improved: [#13125 ] Selecting the RCT2 files now uses localised dialogs.
2021-03-13 12:17:05 +01:00
Michael Steenbeek
96a34318fe
Merge pull request #14260 from IntelOrca/fix/14201-research-finish-assert
...
Fix #14201 : Assert in research_finish_item for invalid ride type
2021-03-12 23:32:23 +01:00
Michael Steenbeek
1b5c7dc1c7
Fix inverted condition
2021-03-12 23:05:30 +01:00
Ted John
87dc006b8c
Apply code review suggestions
2021-03-12 21:27:23 +00:00
Ted John
a9584ad797
Fix #14266 : [Plugin] {STRINGID} format is not applied
2021-03-12 21:08:56 +01:00
Michael Steenbeek
f0dc28e9fc
Update objects to v1.0.21
2021-03-12 11:04:04 +01:00
Michael Steenbeek
bc2df33b0a
Fix #14225 : Desync when “allow early scenario completion” is enabled
2021-03-08 20:16:21 +01:00
Ted John
b1a54fa7ba
Fix #14264 : [Plugin] Cannot modify the coordinate / size of the viewport
2021-03-08 19:52:26 +01:00
Michael Steenbeek
55fea26a96
Fix #14172 : Assertion hit in window_tile_inspector_swap_elements()
2021-03-07 14:53:44 +01:00
Michael Steenbeek
6a11dbf0c9
Fix #14247 : Scenarios from RCT1 allow hiring too many staff
2021-03-07 13:54:01 +01:00
Ted John
4b9c704096
Log warning instead of assert in research_finish_item
2021-03-07 12:53:41 +00:00
Michael Steenbeek
140cc442ac
Merge pull request #14252 from Phelicks/develop
...
Add plugin API for vehicle g-forces
2021-03-07 13:46:16 +01:00
Michael Steenbeek
d5426c3779
Fix #14123 : NPE in map_obstruction_set_error_text()
2021-03-07 13:37:23 +01:00
Michael Steenbeek
e4e26eeb2a
Fix #14167 : NPE in Guest::UpdateRideFreeVehicleCheck()
2021-03-07 13:21:23 +01:00
Michael Steenbeek
9d1643d3ce
Fix #14217 : Crash in large_scenery_paint()
2021-03-07 00:08:51 +01:00
Felix
9ec30e6869
Increase API version and update changelog
2021-03-06 23:51:02 +01:00
Felix
f30a2d417a
Fix formatting
2021-03-06 23:36:38 +01:00
Felix
78785fffbe
Add plugin API for vehicle g-forces
2021-03-06 23:25:26 +01:00
Michael Steenbeek
64807147e6
Fix #14126 : assertion in research_fix()
...
The assertion was hit because of a non-existant ride type being passed into ride_type_set_invented(). Try to avoid this by fixing DAT files when loading them.
2021-03-06 20:57:48 +01:00
Michael Steenbeek
01ddea5fab
Fix #14198 : Crash when creating new folder
2021-03-06 20:07:18 +01:00
Michael Steenbeek
58c3426747
Fix #14239 : NPE in peep_find_ride_to_look_at() ( #14243 )
2021-03-06 16:18:16 +00:00
Ted John
966129dd7c
Remove network traffic window
...
Now available in the DevTools plugin.
2021-03-06 14:47:06 +01:00
Ted John
b179f6e597
Merge pull request #13965 from telk5093/footpath_hotkeys
...
Make ride construction shortcuts work for footpath too
2021-03-06 01:27:18 +00:00
Michael Steenbeek
3b94132bab
Merge pull request #14219 from Gymnasiast/fix/14102
...
Fix #14102 : NPE in window_tile_inspector_invalidate()
2021-03-03 22:48:16 +01:00
Gymnasiast
66a5e28832
Avoid referencing null tile elements or derivations
2021-03-03 22:06:16 +01:00
Michał Janiszewski
29a1cf018d
Add negative tests for SawyerChunkReader
2021-03-03 21:55:05 +01:00
Michał Janiszewski
bf95260f37
Fix issues found in SawyerChunk decoder
2021-03-03 21:29:39 +01:00
Michael Steenbeek
0b73781df8
Fix #14216 : Second line of guest thoughts is set in wrong font
2021-03-03 16:00:03 +01:00
Gymnasiast
52d0689484
Add null checks to all other scenery object usages
2021-03-03 10:25:35 +01:00
Gymnasiast
e332c2a691
Fix #14102 : NPE in window_tile_inspector_invalidate()
2021-03-03 10:21:49 +01:00
Gymnasiast
229f374672
Improve positioning of mechanic status
2021-03-02 23:19:00 +01:00
Gymnasiast
50da55eaf3
Fix #14212 : Multiline news messages are shown incorrectly
2021-03-02 22:48:33 +01:00
Gymnasiast
30edc834ee
Fix #14211 : 'Mechanic X heading for ride' runs out of window
2021-03-02 22:37:15 +01:00
TELK
25bbbef7d1
Fix code formatting
2021-03-03 00:02:46 +09:00
Ted John
9b43ace649
Fix ui.showTextInput performance issue ( #14210 )
...
Over 2 GiB of memory was being allocated when calling ui.showTextInput. Restrict max length to 4 KiB.
2021-03-01 22:09:51 -03:00
Michael Steenbeek
c98746c910
Fix #14206 : Text runs out of Ride window
...
For some reason, the window used `gfx_draw_text_centred_wrapped()` before.
2021-03-01 20:31:15 +01:00
Ted John
d3e54bb579
Merge pull request #14191 from IntelOrca/fix/14190-shortcut-crash
...
Fix #14190 : Game crash likely related to plug-in hotkeys
Fix #14194 : Pressing WASD in text box moves main viewport, too
Fix #14195 : Binding (NumPad) Enter to send message closes the chat
2021-03-01 14:13:45 +00:00
Michael Steenbeek
e40c0af9fd
Merge pull request #13682 from adam-bloom/macos_cmake_dylib
...
macOS CMake with vcpkg dependencies
2021-03-01 14:53:37 +01:00
adam-bloom
d1057d66fc
fix mingw builds
2021-02-28 15:48:30 -07:00
adam-bloom
f6edf8d601
fix static library name for PkgConfig
2021-02-28 15:48:30 -07:00
adam-bloom
9efe184538
macOS cmake CI fixes
...
Use ninja instead of make for faster builds
Proper library linking of dependencies
2021-02-28 15:48:30 -07:00
adam-bloom
7bea24708e
Fix GetBundlePath, add install paths to match cmake install
2021-02-28 15:48:29 -07:00
Michał Janiszewski
6249635fb8
Guard potentially unused const with proper defines
2021-02-28 23:10:25 +01:00
Adam
81fe5ad2cd
Remove unused const: MusicStyleNames
2021-02-28 22:57:23 +01:00
Gymnasiast
a0523339d3
Apply review request
2021-02-28 21:24:17 +01:00
Ted John
083d22adf2
Fix #14195 : Binding (NumPad) Enter to send message closes the chat
2021-02-28 14:08:16 +00:00
Ted John
789b04b4aa
Fix #14194 : Pressing WASD in text box moves main viewport, too
2021-02-28 14:07:56 +00:00
Ted John
17a29dfe87
Fix #14190 : Game crash likely related to plug-in hotkeys
...
Do not cache references to RegisteredShortcut as they can be invalidated when new shortcuts are registered / removed.
Use a map to improve query performance of shortcut by ID.
Store a separate list of strings for the map to use as a key.
2021-02-28 01:13:43 +00:00
Gymnasiast
d6971fa79e
Fix rebase errors
2021-02-28 00:35:38 +01:00
Gymnasiast
7fd049c22e
Remove last remnants of gCurrentFontSpriteBase
2021-02-28 00:26:53 +01:00
Gymnasiast
c40701d997
Make gfx_draw_string() take a TextPaint argument
2021-02-28 00:26:20 +01:00
Gymnasiast
503273793a
Remove gCurrentFontSpriteBase from some functions
2021-02-28 00:26:20 +01:00
Gymnasiast
826f6c7442
Reduce usage of gCurrentFontSpriteBase
2021-02-28 00:25:30 +01:00
Gymnasiast
3e536e2711
Change gfx_draw_string_*_wrapped() to DrawTextWrapped()
2021-02-28 00:23:01 +01:00
Gymnasiast
e2ebc9d43b
Replace gfx_draw_string_left() with DrawTextBasic()
2021-02-28 00:23:00 +01:00
Gymnasiast
d5f79b7972
Replace gfx_draw_string_centred() with DrawTextBasic()
2021-02-28 00:23:00 +01:00
Gymnasiast
a4747b9c8c
Fix initial value of SpriteBase
2021-02-28 00:23:00 +01:00
Gymnasiast
4d9c278ebc
Unify calls to DrawTextBasic
2021-02-28 00:23:00 +01:00
Gymnasiast
13e7ec6e8e
Allow passing TextPaint to DrawTextBasic()
2021-02-28 00:23:00 +01:00
Gymnasiast
ac1e9abb56
Create constructors for TextPaint
2021-02-28 00:23:00 +01:00
Gymnasiast
c296c35f39
Use colour_t for colours enum
2021-02-28 00:23:00 +01:00
Gymnasiast
2477933c51
Turn font sprite base into a strong enum
2021-02-28 00:23:00 +01:00
Gymnasiast
582037bbf3
Create enum class for text underline
2021-02-28 00:23:00 +01:00
Ted John
314faa69ca
Save user shortcuts after removing a binding
2021-02-27 15:51:26 +00:00
Ted John
1ee72ffd21
Fix #14184 : Right and down arrow swapped
...
Incorrect order of legacy shortcut IDs.
2021-02-27 15:51:05 +00:00
Ted John
49b677780f
Merge pull request #14171 from IntelOrca/plugin/custom-widget
...
* Add API for getting network traffic statistics.
* Add API for creating custom widgets.
* Add API for drawing graphics for custom widgets.
* Add click event to spinners and allow them to be held down.
2021-02-27 01:31:00 +00:00
Michael Steenbeek
08f07e6135
Reduce usage of gCurrentFontSpriteBase ( #14178 )
2021-02-26 15:39:20 +01:00
Michael Steenbeek
9397feaa44
Merge pull request #14134 from duncanspumpkin/reorg_entityexport
...
Rework how entity export works to allow for easier changes in future
2021-02-26 13:08:56 +01:00
Michael Steenbeek
28c680f97f
Merge pull request #14163 from Gymnasiast/refactor/get-rtd
...
Use GetRideTypeDescriptor() in more places
2021-02-26 10:46:38 +01:00
Gymnasiast
48f513f73f
Apply review request; fix Testpaint
2021-02-26 10:19:03 +01:00
Gymnasiast
44d0e77afb
Make all access to RTD table use the bounds checking function
2021-02-26 10:01:00 +01:00
Gymnasiast
62f8796677
Replace more flag checking
2021-02-26 09:51:17 +01:00
Gymnasiast
f118b2ede4
Replace ride_type_has_flag() with retrieving RTD
2021-02-26 09:49:09 +01:00
Ted John
e000f06442
Remove holdable flag from spinner widget
2021-02-25 22:30:35 +00:00
Gymnasiast
b1ab20ec27
Replace loose flag checking with helper function
2021-02-25 23:04:40 +01:00
Ted John
f7650fdfbc
Fix CI failure
2021-02-25 18:47:54 +00:00
Michał Janiszewski
ac6e4fc0d6
Move SPRITE_INDEX_NULL, MAX_SPRITES to their new homes
2021-02-25 10:56:27 +01:00
Michał Janiszewski
67b61478cf
Reduce inclusion of EntityList.h
2021-02-25 10:56:27 +01:00
Michał Janiszewski
6baff43f52
Reduce inclusion of Sprite.h
2021-02-25 10:56:27 +01:00
Michał Janiszewski
24f0407740
Add missing include in Windows. cpp
2021-02-25 10:56:27 +01:00
Michał Janiszewski
003e5a0136
Change include guards
2021-02-25 10:56:27 +01:00
Michał Janiszewski
8ee49ab615
Reduce inclusion of world/Sprite.h
2021-02-25 10:56:27 +01:00
Michał Janiszewski
bfdf6874ac
Reduce inclusion of Vehicle.h
2021-02-25 10:56:27 +01:00
Ted John
c7d9eba9db
Increment plugin API version
2021-02-24 22:56:29 +00:00
Ted John
d64bd60278
Fix CI errors
2021-02-24 22:54:53 +00:00
Ted John
c2183989a5
Allow spinners to be clicked and held
2021-02-24 22:37:31 +00:00
Ted John
c1b0df5de6
Improve graphics plugin API
2021-02-24 22:37:31 +00:00
Ted John
081c1895ce
Add box and well APIs
2021-02-24 22:37:31 +00:00
Ted John
93f17f1175
Add custom widget logic and network stats API
2021-02-24 22:37:31 +00:00
Ted John
82b1a5eb6d
Convert CustomWindow into a class
2021-02-24 22:37:31 +00:00
Ted John
faf7f5706f
Merge pull request #14158 from IntelOrca/fix/14149-shortcuts-save
...
Fix #14149 : Numpad shortcut keys are not loaded correctly
Fix #14160 : Game crashs when registering shortcuts
Fix #14161 : ShortcutDesc.bindings does not work
2021-02-24 22:19:30 +00:00
Ted John
668ea01548
Update src/openrct2-ui/windows/ShortcutKeys.cpp
...
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net>
2021-02-24 16:57:19 +00:00
Gymnasiast
d63e3b1d9f
Replace RideTypeDescriptors[ride->type] with GetRideTypeDescriptor()
2021-02-24 14:10:30 +01:00
Gymnasiast
56399e7188
Use the RTD instead of ride_type_has_flag()
2021-02-24 14:10:30 +01:00
Gymnasiast
429f6fb845
Always return an RTD
2021-02-24 14:10:22 +01:00
duncanspumpkin
d2fdf0917b
Remove static casts and use union
2021-02-24 08:08:59 +00:00
duncanspumpkin
11da10971f
Reorg again to reduce casts
2021-02-24 08:00:38 +00:00
TELK
99e72dde3f
Change StringIds to more generic
2021-02-24 16:50:40 +09:00
duncanspumpkin
9da6ba01bb
Rename variables
2021-02-24 07:50:37 +00:00
Ted John
5ba3fdf452
Fix #14161 : ShortcutDesc.bindings does not work
2021-02-23 22:19:46 +00:00
Ted John
52dffb83c2
Fix #14160 : Game crashs when registering shortcuts
2021-02-23 22:18:00 +00:00
Michael Steenbeek
f32fe2b7e4
Fix #14145 : Crash in RCT2TrackTypeToOpenRCT2()
2021-02-23 23:15:19 +01:00
Michael Steenbeek
aa11a1ee96
Fix RCT1 shop import ( #14157 )
...
Regression from https://github.com/OpenRCT2/OpenRCT2/pull/14021
2021-02-23 19:13:26 -03:00
Ted John
aedd93ef33
Add remove button to clear a shortcut
2021-02-23 21:34:32 +00:00
Ted John
817edff4bd
Fix #14149 : Numpad shortcut keys are not loaded correctly
2021-02-23 20:35:24 +00:00
TELK
ea5cf16924
Feature: Make ride construction shortcuts work for footpath too
2021-02-23 16:11:53 +09:00
Cory Sanin
57c950958b
Feature: Add option for taking transparent screenshots
2021-02-22 22:48:51 +01:00
Michael Steenbeek
8e414a9d97
Merge pull request #14121 from ZehMatt/refactor/tileinspector
...
Refactor Tile Inspector
2021-02-22 11:07:46 +01:00
Ted John
440c0f447f
Fix #14140 : Some shortcut keys are not working
2021-02-21 21:44:53 +01:00
duncanspumpkin
48e4a24fee
Update naming
2021-02-21 18:06:49 +00:00
Matt
dabeb036a6
Apply review suggestions
2021-02-21 19:13:58 +02:00
ζeh Matt
c9ca066e94
Merge pull request #14024 from ZehMatt/refactor/coords-peep-destination
...
Use CoordsXY for for some types
2021-02-21 15:33:52 +02:00
Michael Steenbeek
0cdbc99984
Merge pull request #13848 from IntelOrca/refactor/shortcut-engine
...
Introduce new shortcut engine
2021-02-21 14:01:39 +01:00
duncanspumpkin
b9173642ba
Rework how entity export works to allow for easier changes in future
2021-02-21 12:43:51 +00:00
Matt
b080bfe1d4
Only affect the tile inspector state if the position matches
2021-02-21 14:38:15 +02:00
Duncan
2b26e423e4
Remove AsGuest and AsStaff duplicated functions
2021-02-21 13:23:31 +01:00
Matt
5b42fa0dbb
Simplify velocity acceleration
2021-02-21 09:59:05 +02:00
ζeh Matt
d3cae77230
Merge pull request #14129 from ZehMatt/refactor/UpdateSwingingCar
...
Refactor UpdateSwingingCar function
2021-02-21 09:58:15 +02:00
Matt
571bf0dab1
Apply review suggestions
2021-02-21 09:52:33 +02:00
Matt
62baee3adb
Allow passing of destination tolerance via SetDestination
2021-02-21 09:52:33 +02:00
Matt
965041b437
Remove direct access to DirectionX and DirectionY
2021-02-21 09:52:33 +02:00
Matt
2bb5bb9988
Add getter and setter for destination in Peep
2021-02-21 09:52:32 +02:00
Matt
ed4d8b4552
Add getter and setter for location in SpriteBase
2021-02-21 09:52:32 +02:00
Matt
a2ebec8676
Add multiply and divide to coordinate components
2021-02-21 09:52:32 +02:00
Matt
a232749b2f
Refactor UpdateSwingingCar function
2021-02-21 09:30:17 +02:00
Ted John
e28c23f10f
Fix regression in CreateSocket ( #14131 )
2021-02-21 03:58:34 +00:00
Ted John
ed29c0a37b
Replace std::printf with Console::*
2021-02-21 03:14:20 +00:00
Ted John
e383b6f6f7
Move zoom and rotation to view tab
2021-02-21 03:14:20 +00:00
Ted John
b3f6437092
Apply suggestions from code review
2021-02-21 03:14:19 +00:00
Ted John
cacfb8be07
Refactor dead key handling
2021-02-21 03:14:19 +00:00
Gymnasiast
d5eb1cc036
Fix dead key handling
...
This fixes deadkey handling on at least US International on Linux.
2021-02-21 03:14:19 +00:00
Ted John
2b14fe9d7f
Update shortcut listings
2021-02-21 03:14:19 +00:00
Ted John
ff86ebbfe5
Localise shortcut strings
2021-02-21 03:14:19 +00:00
Ted John
acfda711f5
Use std::string_view without reference
2021-02-21 03:14:19 +00:00
Ted John
59b4be6a12
Move InputManager to UiContext
2021-02-21 03:14:19 +00:00
Ted John
80662d72a4
Cache view scroll shortcuts
2021-02-21 03:14:19 +00:00
Ted John
2b3e7b98b8
Roll our own implementation of parse
2021-02-21 03:14:19 +00:00
Ted John
fa1a374a04
Scale binding column in window
2021-02-21 03:14:19 +00:00
Ted John
2b197d0fb2
Fix parsing of shortcuts
2021-02-21 03:14:18 +00:00
Ted John
46c3fd4e5f
Use FileStream instead of fstream
2021-02-21 03:14:18 +00:00
Ted John
eda33fea20
Fix view scroll shortcuts
2021-02-21 03:14:18 +00:00
Ted John
2b3aabb8e4
Remove old shortcut code and fix issues
2021-02-21 03:14:18 +00:00
Ted John
f2f658bf28
Refactor some code into more files
2021-02-21 03:14:18 +00:00
Ted John
af0ed416f5
Implement loading / saving of new shortcuts
2021-02-21 03:14:18 +00:00
Ted John
18c3587d63
Rename shortcut IDs and order groups
2021-02-21 03:14:18 +00:00
Ted John
afb4500c49
Add eye icon for tab
2021-02-21 03:14:18 +00:00
Ted John
7b00f9d96d
Add tabs to keyboard shortcut window
2021-02-21 03:14:18 +00:00
Ted John
f69c1576b3
Refactor shortcut windows to class
2021-02-21 03:14:18 +00:00
Ted John
e7ae9f9f15
Read legacy shortcuts and move to constants
2021-02-21 03:14:17 +00:00
Ted John
900f3cd92b
Fix gcc / clang builds
2021-02-21 03:14:17 +00:00
Ted John
afc548c5a7
Add plugin API for shortcuts
2021-02-21 03:14:13 +00:00
Ted John
9964df5335
Implement gamepad support
2021-02-21 03:13:28 +00:00
Ted John
e6b6403024
Refactor and fix shortcut
2021-02-21 03:13:28 +00:00
Ted John
ea975f88fc
Implement more InputManager
2021-02-21 03:13:28 +00:00
Ted John
c8f31dea7f
Process keyboard input events
2021-02-21 03:13:28 +00:00
Ted John
3339089235
Add more shortcuts
2021-02-21 03:13:28 +00:00
Ted John
f009b9a804
Only handle release mouse buttons
2021-02-21 03:13:28 +00:00
Ted John
ccae533978
Add input manager
2021-02-21 03:13:27 +00:00
Ted John
b1eb975529
Re-add show change dialog
2021-02-21 03:13:27 +00:00
Ted John
e5f263a0fc
Get new manager showing in window
2021-02-21 03:13:27 +00:00
Ted John
28aead5cb5
Start work on new shortcut engine
2021-02-21 03:13:27 +00:00
Michael Steenbeek
345c436f19
Fix #14119 : Illegal array access in vehicle_move_info_valid()
2021-02-20 22:53:40 +01:00
Michał Janiszewski
9aef29361f
Default-initialise more fields ( #14130 )
...
Doesn't really fix any particular issue, but adds more defaults to
fields in classes where other defaults are already present
2021-02-20 19:40:32 +01:00
Ted John
e7adf19f62
Merge pull request #14059 from IntelOrca/improve-viewport-filter-flags
...
[Plugin] Add optional filter to custom tools
2021-02-19 20:33:27 +00:00
Matt
b613835756
Remove more duplicate code
2021-02-19 18:39:08 +02:00
Matt
ffc2e7a0e7
Cleanup duplicate code
2021-02-19 18:28:09 +02:00
Matt
c1767bc98b
Rename function and use std::swap
2021-02-19 18:17:15 +02:00
Matt
62a01fe043
Move tile inspector code into TileInspector namespace
2021-02-19 18:12:22 +02:00
Michael Steenbeek
e11304f1df
Fix #14111 , #14112 : Strange behaviour when selecting a new scenario
2021-02-19 09:37:06 +01:00
Michael Steenbeek
2379c7c9a6
Bump network version
2021-02-19 09:36:45 +01:00
Michael Steenbeek
7274c6a7e7
Remove some unused symbols
2021-02-18 21:15:50 +01:00
Ted John
f7bbaed7f5
Increment plugin API version
2021-02-18 18:10:29 +00:00
Ted John
762b6ee816
Refactor viewport interaction flags and add plugin API
2021-02-18 18:10:29 +00:00
Ted John
27013d147a
Invalidate viewport when moving without scrolling
2021-02-18 18:10:29 +00:00
Gymnasiast
8968dd2274
Apply Duncan's request
2021-02-18 17:53:30 +01:00
Gymnasiast
81fbe27dcb
Guard against accessing non-existant ride types
2021-02-18 17:50:20 +01:00
Gymnasiast
92dc3f4aa9
(Try to) make proximity track type calculation more robust
2021-02-18 17:50:19 +01:00
Gymnasiast
a28c22866c
Remove stray semicolon
2021-02-18 17:50:19 +01:00
Gymnasiast
1b964c0f2e
Refactor flat ride track pieces
2021-02-18 17:50:19 +01:00
Ted John
785fb153db
Merge pull request #14088 from IntelOrca/improve-network-messages
...
Improve network messages and logging
2021-02-18 13:36:44 +00:00
Geoff B
0532ebab7a
Fix #14095 : Holding down [-][+] buttons does not change number of circuits
2021-02-17 08:51:07 +01:00
Ted John
1523597b50
Fix test failures
2021-02-16 20:25:11 +00:00
Ted John
3f5698b1e0
Fix REPL write line on Linux
2021-02-16 20:24:51 +00:00
Ted John
05cb106ee7
Improve advertise messages
2021-02-16 20:24:50 +00:00
Ted John
c30e1f083b
Improve network console messages
2021-02-16 20:24:50 +00:00
Michał Janiszewski
882d3d6356
Merge pull request #14096 from janisozaur/tileelembase
...
Move TileElementBase to its own file
2021-02-15 13:12:58 +01:00
ζeh Matt
90a86cd5f3
Merge pull request #14081 from ZehMatt/refactor/ReadArray
...
Refactor IStream::ReadArray to return unique_ptr
2021-02-15 00:50:10 +02:00
Michał Janiszewski
cef1efea44
Move TileElementBase to its own file
2021-02-14 21:28:02 +01:00
Michael Steenbeek
6e20f41d3c
Fix #13688 : invalid access to _objectSelectionFlags
2021-02-12 23:06:05 +01:00
Duncan
bcc2fbf095
Reduce use of naked new and delete ( #14084 )
2021-02-12 20:20:51 +00:00
Michael Steenbeek
962ef0c02b
Fix #14066 : NPE in window_top_toolbar_invalidate()
2021-02-12 18:48:38 +01:00
Michael Steenbeek
61536eb1f6
Fix #14073 : NPE in InputUpdateTooltip
2021-02-12 18:36:58 +01:00
Matt
c30bd1266f
Refactor IStream::ReadArray to return unique_ptr
2021-02-12 19:30:53 +02:00
ζeh Matt
34b1506c5d
Fix #14058 : Ride entry or exit can not be built in multiplayer ( #14064 )
2021-02-12 15:54:32 +00:00
Duncan
14cca95fec
Fix #14067 : Nullptr exception in vehicle measurement code
2021-02-11 09:49:13 +01:00
Duncan
fe8b8280e8
Fix #7772 . Check for vehicles using an object when setting inuse ( #14056 )
...
* Fix #7772 . Check for vehicles using an object when setting inuse
* Update changelog
2021-02-10 18:14:23 +00:00
Gymnasiast
841d6a5f24
Avoid truncating banner index; check for NULL
2021-02-10 15:22:49 +01:00
Gymnasiast
2aae1cb84e
Fix #13235 : NPE in fix_duplicated_banners()
...
Co-authored-by: IntelOrca <ted@brambles.org>
2021-02-10 15:14:46 +01:00
Ted John
1cb3330779
Fix #14042 : Park Crashes whilst saving
2021-02-09 23:51:31 +00:00
Michał Janiszewski
41d09a2691
Merge pull request #14028 from janisozaur/ccache
...
Add ccache action to GitHub Actions
2021-02-09 23:12:43 +01:00
Michael Steenbeek
397512f4d3
Fix #14032 : NPE in window_tile_inspector_scrollpaint()
2021-02-09 23:02:31 +01:00
Michael Steenbeek
f75a48d8dc
Merge pull request #14034 from Gymnasiast/fix/12939
...
Fix #12939 : divide-by-0 in Vehicle::UpdateMotionDodgems()
2021-02-09 22:18:49 +01:00
Gymnasiast
25b26e769d
Rename ebx to momentum
2021-02-09 20:32:05 +01:00
Michał Janiszewski
ec538e5e75
Extend Android, AppImage builds with ccache support
2021-02-09 20:26:28 +01:00
Michael Steenbeek
7744458cc8
Fix #12861 : Divide-by-0 in UpdateTrackMotionMiniGolf
...
This fix had already been applied to UpdateTrackMotionPoweredRideAcceleration(), but not here.
2021-02-09 20:02:15 +01:00
Michael Steenbeek
0a8cfe75b0
Merge pull request #13969 from IntelOrca/plugin/title-seq
...
[Plugin] Add APIs for editing title sequences
2021-02-09 19:56:16 +01:00
Gymnasiast
45464cddeb
Fix #12939 : divide-by-0 in Vehicle::UpdateMotionDodgems()
2021-02-09 19:13:38 +01:00
ζeh Matt
3e675cdf04
Merge pull request #14023 from ZehMatt/refactor/peep-pickup
...
Move peep pickup test into Peep::CanBePickedUp
2021-02-09 01:30:11 +02:00
Matt
7d517caced
Move peep pickup test into Peep::CanBePickedUp
2021-02-09 00:31:29 +02:00
Michael Steenbeek
7862591a43
Fix #14012 : 'Finish 5 coasters' goal listed incorrectly in selector
2021-02-08 23:29:59 +01:00
Ted John
17450c236e
Increment plugin API and update changelog
2021-02-08 22:28:59 +00:00
Ted John
099a087b18
Fix CI build errors
2021-02-08 22:27:28 +00:00
Ted John
477677775f
Fix crash if save does not exist
2021-02-08 22:27:28 +00:00
Ted John
129d85fa57
Implement title sequence playing
2021-02-08 22:27:28 +00:00
Ted John
78df831f29
Implement loading of parks
2021-02-08 22:27:28 +00:00