1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00
Commit Graph

389 Commits

Author SHA1 Message Date
hdpoliveira
55bb2eaec9 Change all invalidate_sprite_2(Vehicle*) to Vehicle->Invalidate() (#11935) 2020-06-11 20:42:11 +01:00
Michael Steenbeek
2743629142 Merge pull request #11716 from hdpoliveira/vehicle_update_9473_10
Remove some of goto from vehicle_update_track_motion_mini_golf
2020-06-11 17:31:06 +02:00
Tulio Leao
c2322d79c8 Merge pull request #11901 from tupaschoal/prevent-shadow-peep-5
Rename some Peep member variables to use TitleCase
2020-06-08 18:08:56 -03:00
Tulio Leao
ccd76f8fc4 Rename Peep::current_ride to CurrentRide 2020-06-08 17:36:35 -03:00
hdpoliveira
95a13cd96b Remove label loc_6DCA7A 2020-06-07 21:23:29 -03:00
hdpoliveira
bf8459d61d Create Vehicle::UpdateTrackMotionMiniGolfVehicle 2020-06-07 21:22:48 -03:00
hdpoliveira
7eaeaa6062 Make loop explicit in UpdateTrackMotionMiniGolf 2020-06-07 21:20:44 -03:00
hdpoliveira
178e74fd26 Part of #9473: Create Vehicle::UpdateTrackMotionMiniGolf
Converted from vehicle_update_track_motion_mini_golf
2020-06-07 21:12:17 -03:00
Michael Steenbeek
5fc414eaf6 Remove usage of regs.si (#11899)
esi was also looked at - it wasn't used.
2020-06-07 19:56:23 -03:00
Michael Steenbeek
71531445bb Remove usage of regs.edi and regs.di (#11897)
regs.edi was only ever written to, not read. regs.di was written to twice, but only used on the next respective line.
2020-06-07 19:06:52 -03:00
Michael Steenbeek
a0c6752ff3 Merge pull request #11882 from tupaschoal/prevent-shadow-peep-4
Rename some Peep member variables to use TitleCase
2020-06-07 23:35:23 +02:00
Michael Steenbeek
7646f1b7e4 Merge pull request #11896 from hdpoliveira/update_flags
Update flags
2020-06-07 23:03:48 +02:00
hdpoliveira
5b1469b8b7 Create Vehicle::GetTrackType() (#11895) 2020-06-07 21:43:32 +01:00
hdpoliveira
7bef44b020 Create Vehicle::SetUpdateFlag 2020-06-07 17:16:13 -03:00
hdpoliveira
480d1a6d6b Create Vehicle::ClearUpdateFlag 2020-06-07 17:16:12 -03:00
Tulio Leao
2e9bbe15d5 Merge pull request #11881 from duncanspumpkin
Implement Sprite Is As functions
2020-06-07 14:14:10 -03:00
hdpoliveira
ca1a107a8d Extract function modified_speed 2020-06-06 14:14:38 -03:00
hdpoliveira
a66b23ffea Return new acceleration value 2020-06-06 14:13:13 -03:00
hdpoliveira
98ad3a23a4 Issue #9473: UpdateTrackMotionPoweredRideAcceleration 2020-06-06 14:12:49 -03:00
Tulio Leao
4cdfccb338 Rename Peep::id to Id 2020-06-06 11:53:51 -03:00
duncanspumpkin
1758f2a133 Implement As and Is functions for SpriteBase 2020-06-06 11:36:42 +01:00
Michael Steenbeek
f21ddb0723 Refactor checks for station pieces (#11876) 2020-06-05 17:55:15 -03:00
Tulio Leao
a2a0fad886 Rename Peep::peep_flags to PeepFlags 2020-06-04 19:16:11 +02:00
hdpoliveira
a1be45d0b7 #9473: Create Vehicle::UpdateFlag (#11850) 2020-06-01 08:35:30 -03:00
hdpoliveira
86550dad20 Rename swing-related variables in Vehicle 2020-05-31 16:37:09 -03:00
hdpoliveira
bc5aac402a Part of #9473: UpdateSwingingCar/UpdateSpinningCar (#11836) 2020-05-31 00:16:06 -03:00
hdpoliveira
7cc9f5a46d Part of #9473: Create Apply(Non)StopBlockBrake (#11835) 2020-05-30 22:15:23 -03:00
hdpoliveira
d93edf77d6 Part of #9473: Create Vehicle::KillPassengers() (#11714)
* Part of #9473: Create Vehicle::KillPassengers()

Converted from vehicle_kill_all_passengers

Co-authored-by: Michael Steenbeek <m.o.steenbeek@gmail.com>
2020-05-17 23:11:19 -03:00
Michael Steenbeek
32609791de Merge pull request #11719 from Gymnasiast/random-cleanup
Convert sprite_move to method
2020-05-13 11:52:18 +02:00
Michael Steenbeek
511a300251 Some cleanup in Vehicle.cpp (#11742) 2020-05-13 11:51:38 +02:00
Gymnasiast
11472f909d Convert sprite_move to method 2020-05-13 10:47:32 +02:00
Michael Steenbeek
e9fc50d435 Remove NEW_BLOCK_BRAKES define (#11727)
This define was never enabled, because this "new block brake" behaviour (i.e. not braking at all if the brake was open) was too different from the old behaviour to be useful.
Its intended purpose will be handled by adding actual speed settings on block brakes in the future.

This commit removes the define, and also removes the second parameter to apply_non_stop_block_brake(), which is now always true.
2020-05-12 16:29:15 +02:00
Michael Steenbeek
a261b4ce33 Remove commented out code (#11721) 2020-05-11 13:54:15 +02:00
hdpoliveira
650af7d943 Part of #9473: Create Vehicle::TryReconnectBoatToTrack() (#11619)
Converted from loc_6DA9F9
2020-05-09 13:32:22 +02:00
Gymnasiast
cab9fdbe9c Fix parameter name to apply_non_stop_block_brake() 2020-05-05 17:46:46 +02:00
blackhand1001
7fab48e2eb Create constant for BLOCK_BRAKE_BASE_SPEED 2020-05-05 17:35:34 +02:00
Tulio Leao
b1b103b961 Add missing 'y' in "TrainReadyToDepart" (#11636) 2020-05-04 22:39:14 -03:00
hdpoliveira
bb07d84314 Implement Train class with iterators (#11486) 2020-05-04 19:43:25 -03:00
Michael Steenbeek
dfc2512dd5 Merge pull request #11631 from Gymnasiast/refactor/regs2
Remove usage of regs.(e)bp
2020-05-04 23:26:41 +02:00
Michael Steenbeek
2911d01185 Remove usage of regs.eax from UpdateTrackMotion() (#11630) 2020-05-04 23:22:17 +02:00
Gymnasiast
4ad38f14fc Replace regs.(e)bp in vehicle_update_track_motion_mini_golf() 2020-05-04 18:46:35 +02:00
Gymnasiast
09955a0114 Remove regs.bp from UpdateTrackMotionForwards/Backwards 2020-05-04 18:46:35 +02:00
Tulio Leao
a808ded45a Favour usage of CoordsXY objects instead of individual variables 2020-05-02 11:07:18 -03:00
Tulio Leao
28b3ac1693 Make track_block_get_previous() use CoordsXYE 2020-05-02 11:07:18 -03:00
Tulio Leao
6203a5a20d Make track_block_get_next_from_zero() use CoordsXYZ 2020-05-02 11:07:15 -03:00
Duncan
32eb7071a1 Fix #11550: Use std::nullopt instead of empty brace (#11595)
This is technically a gcc bug from the looks of it but since std::nullopt is slightly easier to read I've gone through the codebase and used that over empty braces. In addition noticed a mistake on the scripting viewport get widgetIndex function where it would return an incorrect widgetIndex.
2020-05-02 10:09:12 +02:00
hdpoliveira
d78638c17a Part of #9473: Create Vehicle::TrainReadToDepart (#11593)
Converted from train_ready_to_depart
2020-05-02 00:41:11 -03:00
hdpoliveira
3b099f52d0 Part of #9473: Create Vehicle::SimulateCrash
Converted from vehicle_simulate_crash
2020-05-02 00:00:09 -03:00
hdpoliveira
0fdc6531dc Part of #9473: Create Vehicle::CrashOnLand
Converted from vehicle_crash_on_land
2020-05-02 00:00:09 -03:00
hdpoliveira
7c291c330e Part of #9473: Create Vehicle::CrashOnWater
Converted from vehicle_crash_on_water
2020-05-02 00:00:08 -03:00