Michael Steenbeek
412bf8f8be
Use ride references instead of pointers
2023-01-07 14:02:18 +01:00
James103
73738bbdc8
Replace 2022 with 2023 in copyright headers
...
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
Rik Smeets
bd165199cd
Fix #18802 : Game can crash on mechanic path finding
2022-12-13 21:46:53 +01:00
Duncan
406b73d904
Remove final snakes from map and world ( #18304 )
2022-10-12 09:14:45 -03:00
Duncan
7dd8989e70
Next chunk of World/Map.h snakes ( #18296 )
...
* Next chunk of World/Map.h snakes
* Apply clang-format
2022-10-12 06:35:20 +01:00
Duncan
67bbc8560d
Code style: Remove snakes from everything world apart from Map.h ( #18273 )
...
* Remove remaining snakes from world (outside of map)
* Initial few desnaking of Map.h
2022-10-11 19:39:24 +01:00
Rik Smeets
7c2ec714f7
Improve method name for level crossing check
2022-10-09 11:01:10 +02:00
Duncan
5dba30778d
Code style: Remove more snakes from the park, maphelper, scenery. ( #18222 )
2022-10-08 06:56:17 -03:00
duncanspumpkin
2a593b6029
Remove snake cases from Location and LargeScenery
2022-10-05 20:21:56 +01:00
duncanspumpkin
3e8dc1b2ac
Remove snakes from the foopaths
2022-10-04 20:08:14 +01:00
73
b9e677945d
Replace 20XX with 2022 ( #18158 )
...
* Replace 2020 with 2022
Replace all 2020 headers with 2022
* replace other years with 2022
add missing years
2022-10-01 08:42:14 +01:00
Rik Smeets
efa7a23773
Fix #18140 & #18143 : Invalid read in Staff
...
The tile element should be determined the same way as is done when checking if the footpath is blocked by a vehicle.
Also added some extra safety checks and made the code a bit more efficient / reusable. For example: when the staff member is not a mechanic, the tile element doesn't have to determined.
2022-09-30 18:00:59 +00:00
Rik Smeets
6c6ea169f1
Add railway crossing behaviour for staff ( #18057 )
2022-09-24 07:44:19 +02:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
LordOfLunacy
fa71bbc1b2
Implement requested changes
...
- Change the GuestPathfinder object to a smart pointer
- Improved function signatures
- Added javadoc comments to the abstract base class
- Converted pointers to references in pathfinding function calls
2022-05-14 15:28:24 -04:00
LordOfLunacy
45013a90cc
Part of pathfinding rework
2022-05-13 19:18:46 -04:00
Geoff Banh
85baa6f7ca
Fix #14093 : Replace MONEY macro with user defined literal
2022-03-29 07:23:35 -03:00
Ted John
0aa6ceb2aa
Refactor similar loop in s4 and s6 import
2022-03-11 18:39:04 +00:00
Ted John
90718ca81c
Refactor patrol area class to new file
2022-03-11 18:39:04 +00:00
Ted John
566bc4d311
Allow patrol areas to be single tiles
...
Change the patrol areas to be stored as a sorted list of points grouped in fixed cells for each staff entity. The complexity will be a mixed O(1) and O(log n) search.
2022-03-11 18:39:04 +00:00
Hielke Morsink
ad0a2a8f96
Remove entrance/exit location functions
2022-02-18 23:28:17 +02:00
Hielke Morsink
f06645d2f7
Make stations a private std::array and use getters for access
2022-02-18 23:21:35 +02:00
Hielke Morsink
f47c1b9f96
Close #16468 : Use TIdentifier for StationIndex
2022-02-18 23:11:07 +02:00
ζeh Matt
d7f5003943
Introduce EntityId and refactor everything
2022-02-16 18:56:39 +02:00
ζeh Matt
06e430157f
Use RideId::GetNull and RideId::IsNull over constant
2022-02-12 18:11:18 +02:00
ζeh Matt
a2470c0573
Rename ride_id_t to RideId
2022-02-12 18:11:18 +02:00
Michael Steenbeek
3faa0ebc4b
Fix #16346 : Crash in Staff::UpdateWatering()
2022-01-01 15:07:55 +01:00
Gymnasiast
aa34f0f760
Drop the N postfix
2021-12-11 00:39:39 +01:00
Michael Steenbeek
2d1af0ec42
Replace many GetType() calls with GetTypeN()
2021-12-10 22:43:17 +01:00
ζeh Matt
a6870a97d4
Move staff hiring logic into StaffList
2021-12-03 17:37:39 +02:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00