Duncan
3c8adb1fc1
Remove gMapTooltip format args global ( #12971 )
...
Fix mistake
2020-09-28 21:45:28 -03:00
Łukasz Pękalski
d1cd2e08b5
Close #12388 , refactor PeepState to use strong enum ( #12927 )
...
* Close #12388 , refactor:PeepState to use strong enum
* refactor: refactored file PlayTests.cpp
* refactor: change PEEP_STATE_ to PeepState:: and camel case after merging
chore: code reformatting
2020-09-28 15:51:49 -03:00
Łukasz Pękalski
065da23b3b
Close #12437 , refactor: RIDE_MODE_* to strong enums ( #12833 )
...
* partial refactor: RIDE_MODE_* to strong enums
* Close #12437 , refactor: RIDE_MODE_* to strong enums
* chore: code formatting
* refactor: RideMode, change enum names to CamelCase
and resolve casting order.
* chore: refactor due to code formatting
* Close #12437 , refactor: RIDE_MODE_* to strong enums
Resolved comments
* chore: Formatting correction.
* Use EnumsToFlags constexpr
* refactor: resolved comments
added newline at the end of file
* refactor: Change case stack to default in Switch
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2020-09-28 14:09:59 +01:00
Matt
38e03ae45d
Use the Formatter for News items
2020-09-17 22:14:36 +03:00
Gymnasiast
89f04c4fb3
Fix names of two track type functions
2020-08-10 23:48:18 +02:00
Gymnasiast
9d24655056
Convert track_element_is_block_start() to member function
2020-08-10 21:15:48 +02:00
Arran Ireland
4de58e1fd4
Close #12440 : Refactor VEHICLE_STATUS to use strong enum ( #12606 )
...
* Close #12440 : Refactor VEHICLE_STATUS to use strong enum
* Fix code formatting for VEHICLE_STATUS refactoring
* Refactor VehicleStatus enum to be inside Vehicle
This commit moves VehicleStatus inside Vehicle,
renamed as Status.
2020-08-09 06:24:25 +01:00
Tulio Leao
78053e34d5
Fix #12561 : Synchronized coasters not synced ( #12572 )
2020-08-04 15:51:35 +01:00
Duncan
4fcdcc3729
Fix #12581 : Divide by zero on dodgems on customised vehicles ( #12582 )
...
Likely caused by use of the console or a new plugin
2020-08-03 20:05:22 -03:00
pizza2004
d217dfa9b9
Refactor NewsItem into namespace and Pascal Case ( #12511 )
2020-08-02 23:14:00 -03:00
Sidney
97d74e142e
Close #12441 : Refactor VEHICLE_TRACK_SUBPOSITION to use strong enum ( #12550 )
2020-08-02 07:50:07 +01:00
Duncan
c6e26267a4
Reduce the use of GET_VEHICLE ( #12494 )
...
* Start removing GET_VEHICLE macro use
* Further work
* Remove further GET_VEHICLE's
* Further removal of GET_VEHICLE
* Remove the last of GET_VEHICLE
* Fix testpaint
* Fix nullptr deref
* Make review changes
Also swapped in helper functions and used a standard patern for iterating the train cars
* Further simplify loops for train cars
2020-07-31 07:48:27 +01:00
Michael Steenbeek
e0f2aa9b99
Fix: Brakes keep working during "Brakes failure"
...
This was an error in the original implementation back in 2015.
Thanks to @duncanspumpkin for checking the assembly.
2020-07-30 22:21:19 +02:00
Tulio Leao
63f683853e
Merge pull request #12479 from pizza2004/news-enum
...
Refactor NewsItem to use strong enums
2020-07-28 18:21:45 -03:00
pizza2004
cee7f8d34c
Close #12397 : Refactor NEWS_ITEM_* to use strong enum
2020-07-28 12:54:18 -06:00
Duncan
8a378ad236
Remove uses of GET_PEEP macro and replace with GetEntity ( #12467 )
...
* Use TryGetEntity and GetEntity instead of macro
* Use GetEntity for ui guest window
* Remove final GET_PEEP macro uses
* Fix remaining issues
2020-07-26 17:42:02 +01:00
Gymnasiast
682add27dd
Change ObjectEntryIndex null value to 0xFFFF
2020-07-23 12:45:42 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Gymnasiast
cf664c8340
Close #11971 : Replace ride groups with new ride types
2020-07-17 00:19:49 +02:00
michael coates
01d0287ee2
Close #12253 : Refactor Vehicle sound to remove goto ( #12267 )
...
* Refactor Vehicle Scream Sound goto
* updated contributors
2020-07-15 07:48:47 +01:00
Helio Santos
b0a4f2a97e
Part of #12159 : updated get_station_platform to use CoordsXYRangedZ
...
Updated get_station_platform function to use CoordsXYRangedZ. Updated caller(s) accordingly. Implemented constructor for CoordsXYRangedZ that takes a CoordsXYZ as argument.
2020-07-10 10:59:52 -07:00
Tulio Leao
e5e70688c5
Use big Z coords on some Ride station functions ( #12192 )
2020-07-10 08:40:42 -03:00
Helio Santos
f85319ec8e
Part of #12165 : Use CoordsXYZ on try_add_synchronised_station
...
Updated try_add_synchronised_station function prototype to use CoordsXYZ. Updated caller(s) accordingly.
2020-07-09 10:41:00 -07:00
Helio Santos
a524b2d5ba
Part of #12165 : Use CoordsXYZ on vehicle_check_collision
...
Updated vehicle_check_collision function prototype to use CoordsXYZ. Updated caller(s) accordingly.
2020-07-09 10:41:00 -07:00
Helio Santos
69221606ef
Part of #12165 : Use CoordsXYZ on steam_particle_create
...
Updated steam_particle_create function prototype to use CoordsXYZ. Updated caller(s) accordingly.
2020-07-09 10:41:00 -07:00
Duncan
8c1aa43ef4
Add TryGetEntity to fetch entity objects easily ( #11979 )
...
Implement TryGetEntity and use it
2020-07-07 13:13:22 -03:00
Hudson Oliveira
8b5f3b58c5
Part of #9473 : Create Vehicle::UpdateMotionCollisionDetection ( #11949 )
...
Converted from vehicle_update_motion_collision_detection
2020-07-06 13:57:09 -03:00
duncanspumpkin
e51bbeed23
Convert SPRITE_LIST to an enum class
2020-07-04 07:38:11 +01:00
Tulio Leao
3ba505e5bd
Merge pull request #11956 from hdpoliveira/loc_6DB38B
...
Simplify code related to V-angle and bank
2020-07-03 15:16:08 -03:00
TomasZilinek
f08206a5d0
Fix #11963 - Refactor Peep::OutsideOfPark ( #12060 )
...
* Fix #11963 - Refactor Peep::OutsideOfPark
Changed the definition of Peep::OutsideOfPark from uint8_t to bool and refactored all its occurences in code accordingly.
* Fix #11963 - Refactor Peep::OutsideOfPark
One forgotten instance of Peep::OutsideOfPark occurrence
* Fix #11963 - Refactor Peep::OutsideOfPark
Fix code according to a review suggestion.
2020-06-28 08:39:30 +01:00
Tulio Leao
f329644dd5
Make sprite_misc_explosion_flare_create use CoordsXYZ
2020-06-21 14:00:37 -03:00
Tulio Leao
2e31a7d64d
Make sprite_misc_explosion_cloud_create use CoordsXYZ
2020-06-21 13:58:13 -03:00
Tulio Leao
15bad3898d
Make crash_splash_create use CoordsXYZ
2020-06-21 13:41:11 -03:00
Tulio Leao
030686dc6b
Make crashed_vehicle_particle_create use CoordsXYZ
2020-06-21 13:35:43 -03:00
Hudson Oliveira
0d20b52949
Part of #9473 : Vehicle sounds update functions ( #12001 )
...
* Extract functions for sound frequency
* Pass only SoundId and volume to sounds update
* Create class Sound
* Pass only the corresponding Sound object
* Unify update sound functions
* Fix compilation errors
* Rename Sound1|2 to TrackSound and OtherSound
2020-06-21 17:16:32 +01:00
Hudson Oliveira
ef5f117373
Part of #9473 : Create Vehicle::GetRide ( #12002 )
...
* Part of #9473 : Create Vehicle::GetRide
* Redefine Vehicle::GetRide in Compat.cpp
2020-06-21 08:38:53 +01:00
Hudson Oliveira
d82789733e
Part of #9473 : Create Vehicle::Sub6DBF3E ( #12013 )
2020-06-20 16:21:23 -03:00
Hudson Oliveira
28c9ddd706
Part of #9473 : Create Vehicle::GetRideEntry ( #12003 )
2020-06-20 00:25:40 -03:00
Tulio Leao
8c77d31c54
Merge pull request #11998 from hdpoliveira/move_info
...
Part of #9473 : Create GetMoveInfo and GetTrackProgress
2020-06-20 00:09:28 -03:00
hdpoliveira
f5ac20176b
Use template parameter
2020-06-19 17:42:09 -03:00
hdpoliveira
92584d57f0
Use CamelCase on function name
2020-06-19 17:38:57 -03:00
hdpoliveira
c35556d754
Use CamelCase on track functions
2020-06-19 17:35:21 -03:00
hdpoliveira
0bdbcbcd88
Part of #9473 : Create Vehicle::GetTrackProgress
2020-06-19 15:02:35 -03:00
hdpoliveira
f33f3c07bd
Part of #9473 : Create Vehicle::GetMoveInfo
2020-06-19 15:02:35 -03:00
hdpoliveira
23afe3c453
Extract function animate_scenery_door
2020-06-19 14:41:07 -03:00
hdpoliveira
066ae4d58d
Add const to methods
2020-06-19 14:41:05 -03:00
hdpoliveira
06a3f01730
Create Vehicle::UpdateSceneryDoorBackwards
2020-06-19 14:40:36 -03:00
hdpoliveira
64b6e2a2ee
Create Vehicle::UpdateSceneryDoor
2020-06-19 14:40:32 -03:00
Hudson Oliveira
ea9dd60b91
Part of #9473 : Create Vehicle::UpdateGoKartAttemptSwitchLanes ( #11995 )
2020-06-19 14:06:21 -03:00
hdpoliveira
93b2872747
Rename v-angle to pitch and bank to roll
2020-06-19 12:23:16 -03:00