1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 22:34:33 +01:00
Commit Graph

92 Commits

Author SHA1 Message Date
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
eddda64e20 Fixed formatting 2022-05-13 19:59:47 -04:00
LordOfLunacy
45013a90cc Part of pathfinding rework 2022-05-13 19:18:46 -04:00
frutiemax
275e970d69 Add RIDE_TYPE_FLAG_IS_CASH_MACHINE flag to RTD (#17130)
* Add RIDE_TYPE_FLAG_HAS_CASH flag to RTD

* Rename to RIDE_TYPE_FLAG_IS_CASH_MACHINE
2022-05-04 19:37:11 +01:00
spacek531
22c44fac71 Cleanup vehicle drawing code part 4 (#17105)
* Refactor VehiclePaint to take into account NumRotationFrames

* Reduce copied code
2022-04-30 11:26:55 +01:00
spacek531
5659d43f46 Cleanup vehicle drawing code part 3 (#16968)
* Cleanup vehicle drawing code part 3

* Create functions to convert between rotation amounts

* Add regions to ease code navigation
2022-04-30 07:56:23 +01:00
Michael Steenbeek
765bc59acd Merge pull request #14207 from geoff-B/money32-UDL
#14093 User defined literals for Money32
2022-04-06 15:29:26 +02:00
Rik Smeets
760c96224c Prevent slow motion jumps in Maze 2022-04-06 10:42:00 +02:00
Hielke Morsink
4328a355c0 Apply coding style to surrounding variables 2022-04-05 19:55:49 +02:00
Hielke Morsink
fd09fc2ce8 Replace hardcoded thought indices with identifiers 2022-04-05 19:55:48 +02:00
Hielke Morsink
c429fc329a Add a new warning for queue length complaints 2022-04-05 19:55:48 +02:00
Hielke Morsink
7db9aeb709 Remove max queue length limit 2022-04-05 19:55:47 +02:00
Hielke Morsink
b66d15659f Remove the new cheat that disable queue length limits
This partially reverts commit 0ece5d0f44.
2022-04-05 19:55:44 +02:00
Charles Machalow
0ece5d0f44 Add a new cheat to disable queue length limits 2022-04-02 20:07:06 +02:00
Geoff Banh
85baa6f7ca Fix #14093: Replace MONEY macro with user defined literal 2022-03-29 07:23:35 -03:00
Rik Smeets
4e8ea47e1b Guests with umbrellas no longer always avoid Maze when it rains (#16859)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-03-28 23:26:56 -03:00
alcz
45369e3497 Fix #16565: Ducks/birds always spawn at the edge of the old map limit (#16844)
* Fix #16565: Ducks/birds always spawn at the edge of the old map limits

Fix #16565: birds/ducks spawning at fixed 255-sized map boundary.

Instead spawn at actual map boundary (MapSizeMaxXY) where applicable

* Update Network Version

Increments network version
2022-03-22 16:49:54 +00:00
Ted John
f909be7a43 Merge pull request #16797 from IntelOrca/feature/enhanced-transparency
Introduce more transparency toggles and allow each one to be set to either an invisible or ghost state which is a persisted user setting.

A new window is introduced to control these settings and is inspired by OpenTTD.
2022-03-20 17:56:08 +00:00
Charles Machalow
bb5d53d9f2 Fix crash where peeps enter through extra ride entrances (#16727)
Fix #16170, #16177
2022-03-15 06:39:13 +00:00
Ted John
c68359662d Refactor visibility control 2022-03-14 21:57:05 +00:00
Ted John
ba2fea88fd Fix build failure 2022-03-14 21:55:07 +00:00
Kane
2e93e42a71 More finishing touches
- Changes all references of `VIEWPORT_FLAG_INVISIBLE_PEEPS` to `VIEWPORT_FLAG_INVISIBLE_GUESTS` and `VIEWPORT_FLAG_INVISIBLE_STAFF`
- Updates Invisible People menu item and shortcut.
- Added new viewport flags into the `viewport_set_visibility` function
- Invisible options only work if see-through is activated as well
- Added see-through supports

- Regression: Exclude ride from invisible no longer works (ride is still see-through)
2022-03-14 21:40:27 +00:00
Kane
e134be9538 Implement more options
- Invisible guests
- Invisible staff
- See-through trees
- Invisible trees
- Strings/Ids
2022-03-14 21:38:46 +00:00
Ted John
dff1d730da Implement #13620: [Plugin] Add support for patrol areas to Staff 2022-03-13 19:30:50 +00:00
Ted John
27ed19002a Merge pull request #16740 from IntelOrca/precise-patrol-areas
Allow patrol areas to be single tiles.
2022-03-13 15:20:33 +00:00
Gymnasiast
dfa58470cf Apply simplification 2022-03-11 21:10:10 +01:00
Ted John
97dfe3cb73 Refactor std::lower_bound to binary_find 2022-03-11 18:39:05 +00: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
duncanspumpkin
a5a00517ea Apply regex on PaintAddImageAsParentRotated2 2022-03-11 13:45:00 +00:00
Hielke Morsink
ba85cf4873 Close #15896: Refactor out the ZoomLevel operators 2022-02-26 23:14:59 +01: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
52047805db Use correct type for EntityId and fix issues 2022-02-16 18:56:43 +02:00
ζeh Matt
ff1eb583fc Make clang-format happy 2022-02-16 18:56:43 +02:00
ζeh Matt
d7f5003943 Introduce EntityId and refactor everything 2022-02-16 18:56:39 +02:00
skdltmxn
9cd502a9f7 Fix staff statistics overflow 2022-02-14 07:42:18 +00:00
ζeh Matt
06e430157f Use RideId::GetNull and RideId::IsNull over constant 2022-02-12 18:11:18 +02:00
ζeh Matt
4554d6d883 Fix all uses of RideId 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
Duncan
5157b57a15 OpenRCT2 Limits (#16088)
* Move over max rides to limits file

* Move max stations to limits file

* Move over max inversions, golf holes, helices, custhistsize

* Move over max trains per ride

* Bring over Max cars per train and max circuits per ride

* Port over NumColourSchemes and max vehicle colours

* Fix compilation

* Move over max awards

* Move over max peep spawns and park entrances

* Fix rebase issues

* Remove future work

* Switch style

* Update copyright
2022-02-01 20:59:48 +00:00
ζeh Matt
269673e3aa Profiler update (#16463)
* Add more functions to be profiled

* Add isEnabled method to Profiler scripting interface

* Bump up scripting version

* Apply review suggestions
2022-01-29 15:29:08 +02:00
Gymnasiast
2cf380f7fe Rename NotNice to Overbearing 2022-01-19 13:25:24 +01:00
Gymnasiast
92f38c566a Fix music style check for ‘niceness’ 2022-01-19 13:25:00 +01:00
ζeh Matt
993b168bfd Implement profiler (#16194)
* Implement profiling API

* Add console commands for the profiler

* Remove accidental line

* Correct csv output

* Add copyright notice

* Add missing override

* Add default virtual destructor

* Explicitly pass template argument

* Use static

* Add plugin API for profiler

* Add more profile calls

* Workaround for GCC hopefully

* Add missing static keyword

* Use uint64 for call count

* Reduce name length see if CI passes

* Improve handling of function names

* Work around (broken) static inline variables

* Fix missing include

* Disable profiler for clang 5 and older

* Update copyright date

* Profile UpdateAllMiscEntities

* Apply review suggestions

Co-authored-by: Ted John <ted@brambles.org>
2022-01-18 20:21:20 +02:00
Michael Steenbeek
3faa0ebc4b Fix #16346: Crash in Staff::UpdateWatering() 2022-01-01 15:07:55 +01:00
frutiemax
adb692b74e Forward declare Formatter 2021-12-30 12:17:51 -05:00
Michael Steenbeek
25cb49f8ce Pass paint_session as reference 2021-12-19 14:48:00 +00:00