IntelOrca
34128dc262
Add new .park save format
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com>
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com>
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com>
2021-11-21 22:43:22 +01:00
Hielke Morsink
9dd20ec619
Improve array formatting
...
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
2021-10-17 18:21:45 +02:00
ζeh Matt
6f8e017a32
Backport track design changes
...
Co-authored-by: Ted John <ted@brambles.org>
2021-10-11 20:28:13 +03:00
Hielke Morsink
77141f57b0
Merge pull request #15416 from Broxzier/refactor/unnecessary-else
...
Remove unnecessary else blocks
2021-09-17 14:56:30 +02:00
Hielke Morsink
fc8e0cf9d7
A couple more nullopt returns ( #15422 )
2021-09-16 23:05:50 +02:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
ζeh Matt
b733e97bfa
Remove numerics from common.h and use it as needed
2021-09-11 20:21:08 +03:00
ζeh Matt
eda3188ecf
Fix rebase
2021-09-10 19:10:13 +03:00
ZehMatt
3ad72baaae
Cast fixes
2021-09-10 19:10:12 +03:00
Michael Steenbeek
624a32e93b
Make Coords isNull/setNull functions TitleCase ( #15382 )
2021-09-08 20:48:53 -03:00
IntelOrca
600ce959d7
Use real values for gGuestsInParkHistory
2021-09-03 23:43:43 +02:00
Ted John
3c451a4af4
Use music objects instead of IDs
2021-09-01 10:26:23 +02:00
ζeh Matt
bab646de6e
Add RCT12PeepThoughtItemNone constant
2021-08-30 21:13:34 +03:00
Hielke Morsink
f9c4bb2757
Remove unused persistentChunks argument ( #15290 )
2021-08-26 23:00:12 +02:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
Hielke Morsink
cef26400cf
Use std::make_unique instead of new for arrays
2021-08-21 00:28:21 +02:00
Duncan
223b926f8c
Use std::vector for ride use memory ( #14884 )
...
* Use std::vector for ride use memory
* Use new system for import/export
* Remove legacy field
* Add replay entity size protection to prevent crash
* Increment network version
* Update replays
* Move function to header
* Move constant to RCT12 header as used for both 1 and 2
* Align naming with nsf
2021-08-17 21:29:35 +01:00
Gymnasiast
efb3f8394b
Convert to/from money64 during export; convert completed company value
2021-08-01 15:14:43 +02:00
Duncan
c34079acee
Refactor LargeSceneryEntry and remove rct_scenery_entry ( #14816 )
2021-06-04 12:41:23 +01:00
Duncan
425f968a67
Rearrange WallSceneryEntry to enforce types ( #14808 )
...
* Rearrange WallSceneryEntry to enforce types
* Clang format
Correct inverted nullptr check
2021-06-03 13:26:00 +01:00
Silent
66abc69690
Add a persistentChunks flag to SawyerChunkReader
...
New behaviour of SawyerChunkReader is to skip shrinking the chunk
memory unless persistentChunks is set to true. At the moment all uses
of SawyerChunks created by the reader are temporary and shrinking memory
right before freeing them is a waste of time.
Speeds up loading times and index building
2021-05-23 15:04:50 +02:00
Silent
fb602ec0c9
Fix allocator mismatch in SawyerChunk on Windows with Debug
...
This change allows to use HeapReAlloc in FinaliseLargeTempBuffer
when running Debug builds.
2021-05-23 15:04:02 +02:00
Duncan
a9e1f2e89c
Remove SpriteBase::flags ( #14460 )
...
* Remove SpriteBase::flags
* Increment network version
* update replays
2021-04-11 18:02:19 +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
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
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
Gymnasiast
1b964c0f2e
Refactor flat ride track pieces
2021-02-18 17:50:19 +01:00
Matt
c30bd1266f
Refactor IStream::ReadArray to return unique_ptr
2021-02-12 19:30:53 +02:00
Michael Steenbeek
e3a1af3d05
Use getters/setters for track type and direction
2021-01-30 15:16:17 +01:00
Duncan
f80531070b
Implement EntityLists ( #13853 )
...
* Implement EntityLists
* Remove dead code
* Use alternative name for iterator
* Add comments
* Increment network version
* Update replays
* Remove further dead code
* Update replays again
2021-01-21 18:36:34 +00:00
Ted John
19f0d8dfe9
Fix #13842 : News is imported incorrectly
2021-01-20 12:35:11 +01:00
Michael Steenbeek
830d2426bd
Import RCT1 tile elements by x/y ( #13740 )
...
* Import RCT1 tile elements by x/y
* Clean up wall import
* Move tile pointers creation to a separate function and to heap
* Create class for tile pointer index
2021-01-12 17:53:58 +00:00
Michael Steenbeek
60d1e94046
Close #7059 : Implement landscape doors on Ghost Train ( #13636 )
...
* Implement landscape door updating
* Implement door drawing for Ghost Train
* Amend changelog and bump network version
* Apply review requests
* Always return default seat rotation for ride types with landscape doors
* Fix comment
* Update replays
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2021-01-10 21:38:02 +00:00
Mathias Gibbens
b1e5a11bf3
Several more spelling fixes ( #13752 )
...
Signed-off-by: Mathias Gibbens <mathias@calenhad.com>
Co-authored-by: Mathias Gibbens <mathias@calenhad.com>
2021-01-10 18:23:35 +00:00
Gymnasiast
31dc155e0b
Use type bit 1 on surface element to store more surface styles
2020-12-20 21:45:04 +01:00
Ted John
699103fe86
Fix banner text formatting, import / export
2020-11-28 16:52:19 +00:00
Ted John
9e7504fd98
Improve RCT12 UTF-8 checks
2020-11-27 18:54:58 +00:00
Gymnasiast
802285fd92
Autoconvert ride id between RCT2 and OpenRCT2
2020-11-07 13:49:15 +01:00
Michael Steenbeek
92a5f1aa24
Merge pull request #13310 from ju-pinheiro/sprite-identifier-strong-enum
...
Close #12450 : Refactor SPRITE_IDENTIFIER to use strong enum
2020-11-06 16:55:01 +01:00
Manuel Vögele
69b07904c1
Make TileElement conversion preserve the const qualifier
...
Additionally this commit fixes some constness issues revealed by this change
2020-11-04 19:15:44 +01:00
ju-pinheiro
bb16ca075b
Close #12450 : Refactor SPRITE_IDENTIFIER to use strong enum
2020-10-27 13:26:27 -03:00
Vinicius Sa
d583911997
Avoid variable shadowing in derived struct RCT12BannerElement
...
Give a more meaningful name to its private member that caused the
shadowing, as well as in the struct BannerElement.
Reported by PVS-Studio (Warning: V703).
Fix 3/7.
Issue: 12523
2020-10-06 18:21:19 -03:00
Simon Jarrett
52209af94d
Rename TRACK_ELEM_* enums to TrackElemType::*
...
- Replace enum in Track.h with namespace and constexpr
- Find and replace all instances of TRACK_ELEM_* enums
2020-10-01 19:57:52 +01:00
Gymnasiast
89f04c4fb3
Fix names of two track type functions
2020-08-10 23:48:18 +02:00
Matt
97d14feaa6
Rebase fixes
2020-08-05 16:35:40 +02:00
Matt
0dc43d66e4
Remove the use of INTERFACE macro and macro its self
2020-08-05 16:30:44 +02:00
Matt
83355e35cc
Move IStream, MemoryStream, FileStream into OpenRCT2 namespace
2020-08-05 16:29:36 +02:00
Matt
30376085cf
Include missing headers
2020-08-05 16:29:29 +02:00
Gymnasiast
682add27dd
Change ObjectEntryIndex null value to 0xFFFF
2020-07-23 12:45:42 +02:00