duncanspumpkin
517ed57593
Remove IsPeep
2020-06-06 11:36:48 +01:00
Gymnasiast
cc65564521
Use (RCT12)ObjectEntryIndex in more places
2020-05-01 22:06:13 +02:00
duncanspumpkin
fed148648c
Use IsPeep in more places
2020-04-28 07:57:47 +01:00
duncanspumpkin
5b07a76f05
Use sprite_identifier when identifying entitys
...
The linked list index is only meant to be used for accessing the linked lists. Using the wrong variable is unlikely to cause issues for this exact case but it makes things cleaner.
2020-04-27 18:47:51 +01:00
ifimfree
fb6dd4bfad
Create constants for a few flags
2020-04-20 10:39:26 +02:00
Michael Steenbeek
8127437de1
Reduce direct ride type checking; move available piece lookup to RTD ( #11353 )
2020-04-19 13:32:43 +02:00
Tulio Leao
64e4a8420e
Use named casts on openrct2/world ( #11141 )
2020-04-17 21:08:22 +02:00
Michael Steenbeek
cfb405f0ed
Use StationIndex in many more places ( #10992 )
2020-03-26 21:38:26 +01:00
Gymnasiast
bdf681f440
Clean up many other coordinates
2020-03-13 12:03:43 +01:00
Gymnasiast
c9afcaa5b3
Fix errors
2020-03-05 00:09:39 +01:00
Gymnasiast
3ed7694495
Move tile element-specific flags
2020-03-04 22:01:09 +01:00
Gymnasiast
57a40c0657
Extend PathElement
2020-03-04 21:57:42 +01: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
Michael Steenbeek
f41f878581
Replace some usages of LocationXY(Z)16 ( #10699 )
2020-02-18 22:42:38 +01:00
Matt
758a7e432f
Use const reference instead of copy for location structures
2020-02-13 11:53:14 +01:00
duncanspumpkin
5e9e9df7ce
Refactor invalidate_sprite
2020-01-19 17:16:42 +00:00
duncanspumpkin
a262f325ed
Refactor sprite_remove
2020-01-19 17:15:52 +00:00
duncanspumpkin
164acc85cc
Rename sprites to newer style naming
2020-01-19 17:10:53 +00:00
Tulio Leao
ad89319918
Simplify loop on footpath_update_path_wide()
2020-01-19 13:09:45 -03:00
Tulio Leao
132ab424f7
Use loop on footpath_update_path_wide() to iterate with CoordsDirectionDelta
2020-01-19 13:09:45 -03:00
Tulio Leao
57faa437c0
Prefer CoordsDirectionDelta on footpath_update_path_wide_flags()
2020-01-19 13:09:45 -03:00
Michael Steenbeek
8a9f0eeca5
Prepare track piece handling code for more than 256 pieces ( #10575 )
2020-01-17 12:27:14 +01:00
Tulio Leao
931adaa747
Use TileCoordsXY on footpath_fix_corners_around()
2020-01-14 07:33:46 -03:00
Tulio Leao
05baa13012
Use CoordsXY on footpath_fix_ownership()
2020-01-14 07:33:46 -03:00
Tulio Leao
ac063a7e9a
Use CoordsXY on footpath_update_path_wide_flags()
2020-01-14 07:33:43 -03:00
Tulio Leao
89edde6a3c
Use CoordsXY on footpath_bridge_get_info_from_pos()
2020-01-12 22:27:30 -03:00
Tulio Leao
201d13577e
Use CoordsXY for footpath_get_coordinates_from_pos()
2020-01-12 22:20:29 -03:00
Michael Steenbeek
44dc2068e7
Merge pull request #10515 from tupaschoal/use-more-coords-4
...
Use CoordsXY* on world/Footpath.cpp
2020-01-11 20:52:39 +01:00
Tulio Leao
c5ec4982a3
Use CoordsXY on footpath_chain_ride_queue()
2020-01-11 11:13:05 -03:00
Tulio Leao
57da25cab9
Use CoordsXYZD on footpath_is_connected_to_map_edge_recurse()
2020-01-11 11:13:05 -03:00
Tulio Leao
6189d13b2c
Use CoordsXYZD on footpath_is_connected_to_map_edge()
2020-01-11 11:13:05 -03:00
Tulio Leao
301e0cfeb1
Use CoordsXYZ on footpath_remove_litter()
2020-01-11 11:13:05 -03:00
Tulio Leao
900a2fbd7b
Use CoordsXYRangedZ on footpath_get_element()
2020-01-11 11:13:05 -03:00
Tulio Leao
8e0020e5a2
Use CoordsXYRangedZ for footpath_remove_edges_towards()
2020-01-11 11:13:05 -03:00
Tulio Leao
09e434bc19
Use CoordsXYZD on footpath_remove_edges_towards_here()
2020-01-11 11:13:05 -03:00
Tulio Leao
777898fd6c
Use CoordsXY on footpath_reconnect_queue_to_path()
2020-01-11 11:13:05 -03:00
Tulio Leao
d8c8f2d804
Use CoordsXYZ on footpath_connect_corners_get_neighbour()
2020-01-11 11:13:04 -03:00
Tulio Leao
7cf03d3e41
Use CoordsXY on footpath_remove_edges_at()
2020-01-11 11:13:04 -03:00
Tulio Leao
2b1101d320
Use CoordsXYZ on footpath_interrupt_peeps()
2020-01-11 11:13:04 -03:00
Tulio Leao
9aad709d5c
Use CoordsXY on footpath_disconnect_queue_from_path()
2020-01-11 11:13:04 -03:00
Tulio Leao
b829b22415
Use CoordsXYRangedZ on fence_in_the_way()
2020-01-11 11:13:01 -03:00
Tulio Leao
78611b664f
Use CoordsXY on footpath_connect_corners()
2020-01-11 11:00:19 -03:00
Michael Steenbeek
08ab15ef36
Fix #10313 : Path furniture can be placed on level crossings
2020-01-05 17:59:02 +01:00
Tulio Leao
e7ee8ebc03
Use CoordsXY on footpath_update_queue_entrance_banner()
2020-01-05 09:14:55 -03:00
Tulio Leao
482ca8765c
Use CoordsXY on Footpath's loc_6A6D7E() and loc_6A6C85()
2020-01-05 09:14:51 -03:00
Tulio Leao
b1dc6ed6ed
Use CoordsXY on footpath_connect_edges()
2020-01-05 08:20:16 -03:00
Gymnasiast
0d09a645fc
Refactor map_get_footpath_element() and fix #10486
2019-12-31 10:08:36 +01:00