hdpoliveira
fd111403f1
Part of #9473 : vehicle_update_track_motion to Vehicle::UpdateTrackMotion
2020-04-18 14:41:47 -03:00
Michael Steenbeek
3bf316ee8c
Merge pull request #11336 from Gymnasiast/refactor/available-breakdowns-to-rtd
...
Move available breakdowns, category and independent listing flag to RTD
2020-04-18 18:31:39 +02:00
Eyal Minsky-Fenick
2ef77414d5
Ensure ride->inspection_station is set in ride_prepare_breakdown ( #10245 )
2020-04-18 15:30:25 +02:00
Gymnasiast
5d3bf2be20
Move category to RTD; move RideTypeIsIndependent to a flag
2020-04-18 15:22:41 +02:00
Gymnasiast
c41fb64535
Move available breakdowns to RTD
2020-04-18 15:22:41 +02:00
Michael Steenbeek
b4a763c751
Move naming convention to RTD ( #11319 )
2020-04-18 12:12:07 +02:00
Gymnasiast
a295f3c003
Fix #11315 : Never opened ride shown as favourite ride of 74 guests
2020-04-18 07:39:24 +01:00
Tulio Leao
b449e445f7
Use named casts on openrct2/ride ( #11163 )
...
Excluding subfolders
2020-04-17 19:53:33 +02:00
Michael Steenbeek
777201c7fd
Return false for non-existing ride types
...
Co-Authored-By: Tulio Leao <tupaschoal@gmail.com >
2020-04-17 17:05:16 +02:00
Gymnasiast
edd31d9f16
Move flags to RideTypeDescriptors
2020-04-17 17:03:33 +02:00
duncanspumpkin
b857792f23
Fix vehicles changing state on export/import
2020-04-07 20:07:37 +01:00
Michał Janiszewski
94f6d70ac7
Fix #11084 : null broken vehicle ( #11090 )
2020-04-06 22:32:27 +02:00
Michał Janiszewski
63c11ab8fd
Fix #11128 : null tile element in track_block_get_previous ( #11144 )
2020-04-06 22:32:27 +02:00
Michał Janiszewski
27da48336a
Revert "Fix #11084 : null broken vehicle ( #11090 )"
...
This is being reverted now that we have replay records uploaded as part
of the backtrace.io information to try figuring out the root cause.
This reverts commit 24edada2d8 .
2020-04-03 09:53:36 +02:00
Michał Janiszewski
620be75285
Revert "Fix #11128 : null tile element in track_block_get_previous ( #11144 )"
...
This is being reverted now that we have replay records uploaded as part
of the backtrace.io information to try figuring out the root cause.
This reverts commit d1faa228c5 .
2020-04-03 09:49:58 +02:00
Michał Janiszewski
d1faa228c5
Fix #11128 : null tile element in track_block_get_previous ( #11144 )
2020-03-29 22:01:13 +01:00
Duncan
f64ea65d03
Rename SPRITE_LIST_TRAIN_HEAD to reduce car head confusion ( #11105 )
...
A single car on a coaster can comprise of multiple vehicles. One of those vehicles will be the car head vehicle. The train can comprise of multiple cars. Therefore not all vehicle->IsHead 's will be in SPRITE_LIST_TRAIN_HEAD. This rename makes that slightly more clear
2020-03-29 09:23:24 +01:00
Tulio Leao
fc645180be
Ammend #11090 for consistency on nullptr check ( #11104 )
2020-03-28 11:39:59 +00:00
Michał Janiszewski
24edada2d8
Fix #11084 : null broken vehicle ( #11090 )
2020-03-28 10:21:24 +00:00
Michael Steenbeek
b70c5cefd6
Use station index in a few more places ( #11066 )
2020-03-27 11:13:02 +01:00
Michael Steenbeek
cfb405f0ed
Use StationIndex in many more places ( #10992 )
2020-03-26 21:38:26 +01:00
Aaron van Geffen
302fe1cb2b
Merge pull request #10926 from IntelOrca/zoom-refactor
...
Zoom refactor
2020-03-24 23:28:32 +01:00
Michael Steenbeek
e66a6754f5
Remove some hardcoded numbers ( #11004 )
2020-03-23 19:12:57 +01:00
Ted John
d34dec9c27
Create ZoomLevel struct to add two new zoom levels
2020-03-23 15:54:03 +00:00
Gymnasiast
2f7a26e8da
Refactor station index a bit
2020-03-21 17:05:16 +01:00
Ted John
c89cecb2b5
Refactor the ride type to entry map ( #10967 )
...
Use C++ vectors and allow larger ride entry indices (> 256)
2020-03-20 18:07:31 +01:00
Michael Steenbeek
b73098ba21
Fix #10902 : Resetting ride let guest out in the air ( #10968 )
2020-03-18 22:22:25 +01:00
Michael Steenbeek
fd91c41a76
Name remaining ride type flags ( #10947 )
2020-03-16 22:52:06 +01:00
X123M3-256
7219c880e2
Allow opening rides with unsuitable track when "Enable all drawable track pieces" cheat is on. ( #10923 )
...
Co-authored-by: Edward Calver <hx010973@reading.ac.uk >
2020-03-15 14:11:04 +01:00
Gymnasiast
bdf681f440
Clean up many other coordinates
2020-03-13 12:03:43 +01:00
Gymnasiast
9fd2b883a8
Apply review request
2020-03-12 15:27:58 +01:00
Gymnasiast
02c135e4fa
Clean up many staff functions
2020-03-07 23:07:47 +01:00
Gymnasiast
ad91654a3d
Use big Z in more places
2020-03-07 21:54:47 +01:00
Michael Steenbeek
be13c1fc87
Refactor more TileCoords
2020-03-07 21:07:18 +01:00
Michael Steenbeek
904cad77b5
Merge pull request #10864 from Gymnasiast/refactor/station-starts
...
Change station starts to CoordsXY
2020-03-05 22:48:53 +01:00
Gymnasiast
9c7c57f722
Apply review request
2020-03-05 21:25:58 +01:00
Gymnasiast
dcf4301559
Use constant for invalid direction
2020-03-05 18:27:36 +01:00
Gymnasiast
2eb967b30d
Change station start to CoordsXY
2020-03-05 12:29:02 +01:00
Tulio Leao
09fad0ef7f
Change rct_viewport to use ScreenCoordsXY
2020-03-02 20:50:58 -03:00
Michael Steenbeek
d5c4d78d49
Move vehicle track location to CoordsXYZ ( #10856 )
...
* Move vehicle track location to CoordsXYZ
Co-authored-by: Tulio Leao <tupaschoal@gmail.com >
2020-03-01 15:45:51 -03:00
Michael Steenbeek
e3f5eb7275
Merge pull request #10847 from tupaschoal/const-ref-coords
...
Prefer const ref to send (Tile)CoordsXY(ZD) over
2020-03-01 14:38:39 +01:00
Tulio Leao
9bcd20e0e6
Prefer const ref to send ScreenCoordsXY over
2020-02-29 08:25:48 -03:00
Tulio Leao
181eaf768d
Receive CoordsXYZ by const ref instead of copy
2020-02-29 01:14:05 -03:00
Tulio Leao
473bb4683b
Receive (Tile)CoordsXYZD by const ref instead of copy
2020-02-29 01:09:24 -03:00
Duncan
b8b539c16e
Modify next_x/y/z to become a CoordsXYZ ( #10680 )
...
* Modify next_x/y/z to become a CoordsXYZ
Should be further scope for refactoring from this.
* Make suggested changes
* Fix default construct issues
2020-02-11 22:01:14 +00:00
Gymnasiast
ca2f37ae7f
Remove opt::optional polyfill
...
std::optional is supported by Xcode 10. The non-polyfill variant was already used in our code, so this is not likely to break anything that wasn't broken before.
2020-02-01 22:25:03 +01:00
Duncan
171e255981
Fix #10598 . Mistake made when fixing #7784 . ( #10606 )
2020-01-23 22:43:29 +01:00
duncanspumpkin
5e9e9df7ce
Refactor invalidate_sprite
2020-01-19 17:16:42 +00:00
duncanspumpkin
bdcfd615ed
Refactor sprite_move
2020-01-19 17:16:41 +00:00
duncanspumpkin
a262f325ed
Refactor sprite_remove
2020-01-19 17:15:52 +00:00