Duncan
66b8f283eb
Rename flag and reorg ghost remove flags ( #16734 )
2022-02-27 22:39:55 +00:00
Silent
795144662a
Fix #11752 : Track pieces with fractional cost are too cheap to build ( #16477 )
...
Fixes an inconsistency wuth RCT2 where track prices with a fractional part
did not have their price rounded up when building, but did when refunding.
This created an exploit where refunding such a track piece granted the player
0.50€ more than they spent on the piece.
2022-02-19 17:47:13 +00:00
Hielke Morsink
ad0a2a8f96
Remove entrance/exit location functions
2022-02-18 23:28:17 +02:00
Hielke Morsink
f06645d2f7
Make stations a private std::array and use getters for access
2022-02-18 23:21:35 +02:00
Hielke Morsink
f47c1b9f96
Close #16468 : Use TIdentifier for StationIndex
2022-02-18 23:11:07 +02:00
Michael Steenbeek
5edc561715
Close #11437 : Migrate old platform methods
2022-02-18 21:57:00 +01:00
ζeh Matt
0a67426799
Add MAX_ENTITIES check in PeepPickupAction
2022-02-17 18:40:18 +02:00
ζeh Matt
d7f5003943
Introduce EntityId and refactor everything
2022-02-16 18:56:39 +02:00
Ted John
3d2420c86c
More code review changes
2022-02-14 23:15:59 +00:00
Ted John
454bfb0a8f
Refactor map size to allow for rectangle maps
2022-02-14 23:15:59 +00:00
Gymnasiast
49ccc21d84
Fix #16576 : Cannot select vehicle types with entry index >= 256
2022-02-12 20:43:45 +01:00
ζeh Matt
c0474d2d27
Merge pull request #16466 from ZehMatt/refactor/identifier-rideid
...
Use TIdentifier for RideId
2022-02-12 11:23:54 -08:00
ζeh Matt
f4d105f843
Remove NetworkRideId
2022-02-12 18:11:18 +02:00
ζeh Matt
06e430157f
Use RideId::GetNull and RideId::IsNull over constant
2022-02-12 18:11:18 +02:00
ζeh Matt
4554d6d883
Fix all uses of RideId
2022-02-12 18:11:18 +02:00
ζeh Matt
a2470c0573
Rename ride_id_t to RideId
2022-02-12 18:11:18 +02:00
Michael Steenbeek
f0ee220ec6
Fix messages [ci skip]
...
Co-authored-by: pizza2004 <chad@neejean.org >
2022-02-12 12:28:37 +01:00
Gymnasiast
635a6507eb
Fix #16572 : Refactor error made in #15403
2022-02-12 00:43:32 +01:00
Duncan
5157b57a15
OpenRCT2 Limits ( #16088 )
...
* Move over max rides to limits file
* Move max stations to limits file
* Move over max inversions, golf holes, helices, custhistsize
* Move over max trains per ride
* Bring over Max cars per train and max circuits per ride
* Port over NumColourSchemes and max vehicle colours
* Fix compilation
* Move over max awards
* Move over max peep spawns and park entrances
* Fix rebase issues
* Remove future work
* Switch style
* Update copyright
2022-02-01 20:59:48 +00:00
ζeh Matt
dea22ad951
Refactor RideCreateAction to pass entrance object explicitly
2022-01-29 17:07:31 +02:00
ζeh Matt
383412252c
Only modify gLastEntranceStyle for the callee of the game action
2022-01-29 16:42:27 +02:00
ζeh Matt
993b168bfd
Implement profiler ( #16194 )
...
* Implement profiling API
* Add console commands for the profiler
* Remove accidental line
* Correct csv output
* Add copyright notice
* Add missing override
* Add default virtual destructor
* Explicitly pass template argument
* Use static
* Add plugin API for profiler
* Add more profile calls
* Workaround for GCC hopefully
* Add missing static keyword
* Use uint64 for call count
* Reduce name length see if CI passes
* Improve handling of function names
* Work around (broken) static inline variables
* Fix missing include
* Disable profiler for clang 5 and older
* Update copyright date
* Profile UpdateAllMiscEntities
* Apply review suggestions
Co-authored-by: Ted John <ted@brambles.org >
2022-01-18 20:21:20 +02:00
GalBr
fae4e6323f
Fix #16234 : Wrap vehicle colors when there are more than 32 trains ( #16323 )
...
* Wrap vehicle_colours in TrackDesignAction
* Wrap the color presets in set_vehicle_colours_to_random_preset
* Increment network version
* Update changelog.txt
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2022-01-08 19:03:58 -03:00
frutiemax
adb692b74e
Forward declare Formatter
2021-12-30 12:17:51 -05:00
Gal B
367fcaad3c
Refactor MazeGetSegmentBit to use const CoordsXY&
2021-12-22 18:48:37 +02:00
Gal B
343f9bbca0
Refactor maze_set_track to use const CoordsXYZD&
2021-12-22 18:48:37 +02:00
Gymnasiast
ef6f2cceee
Create RideConstruction.h
2021-12-18 20:27:13 +01:00
Duncan
3572c3f466
Fix #16201 : Rides don't get properly deleted when you remove them ( #16236 )
...
* Fix #16201 . Remove all tracks on a tile when demolishing
* Bump network version
2021-12-14 12:37:35 +00:00
Gymnasiast
9b81bacecd
Move ride_remove_peeps() to method
2021-12-12 12:31:19 +01:00
Michael Steenbeek
27cbb6c6ae
Merge pull request #16190 from Gymnasiast/refactor/normalised-tile-element-type-3
...
Part of #15485 : normalise all OpenRCT2 tile element types
2021-12-12 09:53:09 +01:00
ζeh Matt
cec30e093d
Merge pull request #15991 from ZehMatt/refactor/bannerid
...
Use TIdentifier for BannerIndex
2021-12-11 08:08:27 -08:00
Gymnasiast
aa34f0f760
Drop the N postfix
2021-12-11 00:39:39 +01:00
Gymnasiast
fc3ce3294c
Move over switches to normalised tile element types
2021-12-11 00:30:59 +01:00
Michael Steenbeek
2d1af0ec42
Replace many GetType() calls with GetTypeN()
2021-12-10 22:43:17 +01:00
ζeh Matt
a79e2a375a
Move staff_set_name to Staff
2021-12-03 17:40:27 +02:00
Duncan
79b12d2953
Introduce DATLimits.h for RCT2 Dat file object limits ( #16034 )
2021-12-01 21:55:52 +00:00
ζeh Matt
ad5e54460f
Merge pull request #16062 from ZehMatt/refactor/map-iterators
...
Refactor tile map iterations
2021-12-01 06:16:39 -08:00
ζeh Matt
810521bd5b
Remove BANNER_INDEX_NULL
2021-12-01 14:41:59 +02:00
ζeh Matt
3563d89e58
Add TIdentifier specialization to GameAction visitor
2021-12-01 14:41:59 +02:00
Michael Steenbeek
fb9d02cab5
Fix #15998 : Map action only accepts 998×998 instead of 999×999
2021-11-30 21:27:46 +01:00
ζeh Matt
be5d6ac3db
Fix the loops
2021-11-29 14:12:26 +02:00
ζeh Matt
56425b33e4
Refactor iterating over all map tiles in RideDemolishAction
2021-11-29 12:59:36 +02:00
Duncan
eba42a9584
Introduce Limits headers. ( #15329 )
...
* Move RCT12 limits to seperate file and namespace
* Remove prefix from constants
* Add rct1 limits file
* Rename constants to remove prefix
* Add RCT2 limits file
* Remove RCT2 prefix from constants
* Move constant to correct header
* Fix rebase mistakes
* Drop prefix
2021-11-27 16:20:05 +00:00
ζeh Matt
c4ad5fcd15
Adjust includes
2021-11-26 21:01:44 +02:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00
ζeh Matt
56e78d5733
Merge pull request #15985 from ZehMatt/refactor/entities2
...
Refactor Sprite to Entity
2021-11-25 12:53:50 -08:00
Duncan
2b4eaab5dc
Modify TrackPlaceAction to handle ride type parameter ( #15980 )
...
* Modify TrackPlaceAction to handle ride type parameter
* Update network and plugin version
* Update replays
2021-11-25 12:28:30 +00:00
Peter Schussheim
0495b265c0
Refactor unchecked std::array subscript operator
2021-11-25 10:13:20 +01:00
ζeh Matt
0024252328
Fix includes
2021-11-24 17:19:52 +02:00
ζeh Matt
03fb9b390f
Rename Sprite to EntityRegistry
2021-11-24 17:04:12 +02:00