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

16422 Commits

Author SHA1 Message Date
Matt
4c11e11fe2 Rename PeepActionType None1 and None2 2021-05-13 18:05:55 +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