Ted John
efac635cfa
Do not update ride measurements when simulating
2019-05-28 22:37:54 +01:00
Ted John
ca32357dad
Use bool for isApplying
2019-05-28 22:31:46 +01:00
Ted John
62ff1e7534
Prevent breakdown during simulation
2019-05-28 16:50:38 +01:00
Ted John
94caa46654
Allow modification of ride entrance during simulation
2019-05-28 16:50:08 +01:00
Ted John
5f1f428bce
Add and use Ride::SupportsStatus
2019-05-28 16:50:08 +01:00
Ted John
c4e18e570e
Add and implement simulation mode for rides
2019-05-28 16:50:08 +01:00
Greg Hennis
1fcedae3bc
Fix #9258 : Rename SPRITE_LIST_NULL to ..._FREE ( #9260 )
2019-05-15 19:07:01 +02:00
Filip Gawin
6833da77e3
Simplify boolean expresions
2019-05-10 22:00:38 +02:00
Michał Janiszewski
7b71fe8acd
Fix error value checked from ride_get_smallest_station_length ( #8719 )
...
ride_get_smallest_station_length returns the int32_t::max instead of -1
on error.
2019-05-08 22:34:41 +01:00
Michael Steenbeek
da6794ad9e
Refactor second argument to move_sprite_to_list()
2019-05-08 22:11:51 +02:00
Michael Steenbeek
c8df801e66
Create ShopItemDescriptor
2019-04-26 20:25:11 +02:00
Michael Steenbeek
5a906b2378
Port more functions to Ride struct ( #9119 )
2019-04-20 22:22:39 +02:00
Michael Steenbeek
42a1a8704d
Use empty() for vectors; clean up bool comparisons ( #9118 )
2019-04-20 20:39:47 +02:00
duncanspumpkin
5280728760
Fix formatting
2019-04-04 19:23:44 +01:00
duncanspumpkin
356a0e5e91
Rework flags
2019-04-04 19:23:44 +01:00
Michael Steenbeek
a50c7836f8
Move more ride functions to struct methods ( #8977 )
2019-03-27 21:53:38 +01:00
Michael Steenbeek
1c570c8eec
Move some ride functions to struct methods
2019-03-20 20:05:25 +01:00
Gymnasiast
4f8548dfea
Allow different default colours per stall
2019-03-19 21:20:31 +01:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Duncan
9c4430736d
Use get track element ( #8884 )
...
* Use get_track_element and change its return type
* Make things work
* Use helper functions where possible
2019-03-16 11:21:36 +00:00
Ted John
0aade935aa
Fix #8824 : invalid read in footpath_chain_ride_queue ( #8831 )
2019-03-06 19:11:21 +00:00
Ted John
cdec457abd
Refactor peep struct
2019-02-28 20:28:58 +01:00
duncanspumpkin
1565982f18
Fix formating
2019-02-28 08:22:52 +00:00
duncanspumpkin
7fdc482e7d
Make review changes. Fix formating
2019-02-28 08:21:58 +00:00
duncanspumpkin
705fe17362
Implement RideEntranceExitRemoveAction
...
Move all calls to the game action framework
2019-02-28 08:21:58 +00:00
Duncan
f0092b7aae
Merge pull request #8781 from duncanspumpkin/flag_refactor
...
Flag refactor
2019-02-27 19:18:02 +00:00
Michael Steenbeek
6d3200aacc
Merge pull request #8772 from IntelOrca/refactor/sprite-import-export-2
...
Refactor in-game sprite structs
2019-02-27 13:29:13 +01:00
duncanspumpkin
83f7547bf2
Use Is/Set BlockBrakeClosed
2019-02-27 10:49:48 +00:00
duncanspumpkin
6495ffdb34
Use IsBlockedByVehicle
2019-02-27 10:49:48 +00:00
duncanspumpkin
93873c5e74
Make review changes. Fix formating
...
Reorder includes
2019-02-27 08:15:11 +00:00
duncanspumpkin
e1977d1a2f
Remove references to game command
2019-02-27 08:15:11 +00:00
duncanspumpkin
d01dfe44d5
Add RideSetSettingAction
...
Use game action for calling
Use correct error titles for operation mode changes
2019-02-27 08:15:07 +00:00
Ted John
aa7d181070
Define constants for vehicle type
2019-02-26 16:49:29 +00:00
duncanspumpkin
d5ad6b7b0f
Move game command calls to a single call site
2019-02-26 12:47:44 +00:00
Michael Steenbeek
5b0367ea0e
Merge pull request #8774 from duncanspumpkin/ghost_refactor
...
Use IsGhost() to access ghost state
2019-02-26 12:46:16 +01:00
duncanspumpkin
07b372f4c6
Make review changes fix clang format
2019-02-26 08:14:57 +00:00
duncanspumpkin
c1546a92b7
Implement RideSetVehicleAction
...
Move all callees to the new action.
Required rework on how the ride type change worked.
2019-02-26 08:14:57 +00:00
Matt
f0366b84e4
Fix ride_shop_connected dereferencing null.
2019-02-25 20:58:41 +01:00
Ted John
bac3168a23
Refactor IsChild to IsHead
2019-02-25 17:58:22 +00:00
duncanspumpkin
737c308e4e
Use IsGhost() to access ghost state
...
Added set and clear ghost to further prevent direct access to flags
2019-02-25 15:12:35 +00:00
duncanspumpkin
f9fe09634c
Move quarter tile class to the tile element header.
...
Refactor flags slightly
2019-02-25 13:51:07 +00:00
Ted John
520b1b4819
Try out changed sprite structs for main game
2019-02-25 12:29:31 +00:00
Ted John
81d41895d2
Fix divide by zero in ride_prepare_breakdown
2019-02-24 11:57:05 +00:00
Nathaniel Ngo
300fd3a589
Fix for Issue#8725: refactoring _currentTrackBegin and _previousTrackPiece to use CoordsXYZ struct ( #8759 )
...
* Refactored _currentTrackBeginX, _currentTrackBeginY, _currentTrackBeginZ to use a CoordsXYZ struct
* Refactored _previousTracPieceX, _previousTrackPieceY, _previousTrackPieceZ to use a CoordsXYZ struct
* Refactored _currentTrackBegin and _previousTrackPiece in source files
* Fixed clang formatting
2019-02-24 09:15:31 +00:00
duncanspumpkin
1227bc09fc
Remove references to game command
2019-02-21 16:00:31 +00:00
duncanspumpkin
3a615c2126
Use new game action for callees
2019-02-21 16:00:31 +00:00
duncanspumpkin
9b6fdd41aa
Remove redundant code. Rename to standard style
2019-02-19 15:20:55 +00:00
duncanspumpkin
09bb99d9e8
Fix clang format and travis errors
...
Minor refactor
Move key callback code into callbacks. Fixes shop placement
Use rotate_map_coordinates
2019-02-19 12:31:22 +00:00
duncanspumpkin
77b25714ff
Move callbacks into GameActionCallbacks
...
Remove remaining references to game command
2019-02-19 12:30:42 +00:00
Ted John
ba445cb6ef
Pass Ride* instead of ride_id_t
2019-02-13 20:16:42 +00:00