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

1017 Commits

Author SHA1 Message Date
Johan Mattsson
c00cc90b1f Fix bounds checks and a nullptr check 2022-02-03 21:42:12 +01: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
Michael Steenbeek
f43a4344ce Remove platform_get_user_directory() (#16530) 2022-01-29 09:01:05 -03: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
730364da1b Use .u8string() in ResolveFilenameForCapture() 2022-01-16 16:18:59 +01:00
Duncan
7e46427059 refactor ride track groups to use new bitset (#16172) 2022-01-15 07:50:00 +00:00
Hielke Morsink
e33d71346a Prevent underground view during title sequence 2022-01-11 17:31:01 +01:00
Gymnasiast
6bcf848b2f Use C++ filesystem for more file/path functions 2022-01-08 19:07:48 +01:00
Gymnasiast
10301507a9 Fix Android 2022-01-08 16:58:57 +01:00
Michał Janiszewski
f68411b4eb Ensure linenoise can be safely used from multiple threads (#16388)
This addresses a data race for `linenoise::lnstate` and
`StdInOutConsole::_isPromptShowing` which could result in openrct2
crashing and misreporting values when inspected in debugger.
2022-01-07 16:37:41 +01:00
Gymnasiast
e4496c41bd Upgrade platform_sanitise_filename() 2022-01-05 15:26:52 +01:00
Gymnasiast
1e1f370c8d Create PaletteIndex 2022-01-01 18:38:31 +01:00
frutiemax
adb692b74e Forward declare Formatter 2021-12-30 12:17:51 -05:00
spacek531
52d55f5341 refactor ride track groups to use new bitset
remove erroneous value from dummy rtd

make comment more descriptive

remove comment
2021-12-23 02:17:57 -08:00
Duncan
ee297e9ed3 Fix #16287: Incorrect sv6 extension using console or system browser 2021-12-22 16:19:02 +01:00
Michael Steenbeek
25cb49f8ce Pass paint_session as reference 2021-12-19 14:48:00 +00:00
Ted John
e165de7482 Refactor paint structs to use ImageId and extend size of image list (#16258)
* Move to image ID for paint struct

* Move image list to be past the end of legacy limit

* Extend image list size

* Introduce constants for image list size

* Use std::array to store internal paint struct
2021-12-18 07:40:10 +00:00
Michael Steenbeek
b4f256be87 Merge pull request #16151 from IntelOrca/refactor/imageid-painting
Refactor most map paint routines to use ImageId
2021-12-12 11:43:31 +01:00
Michael Steenbeek
27cbb6c6ae Merge pull request #16190 from Gymnasiast/refactor/normalised-tile-element-type-3
Part of #15485: normalise all OpenRCT2 tile element types
2021-12-12 09:53:09 +01:00
Ted John
a17f1990f2 Refactor some viewport code to use ImageId 2021-12-11 23:06:21 +00:00
Michael Steenbeek
b83f7c3859 Merge pull request #16150 from IntelOrca/refactor/imageid-ui
Refactor footpath, scenery, terrain and mapgen windows to use ImageId
2021-12-11 23:21:19 +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
Ted John
a324bfab63 Add image manager plugin API (#16144) 2021-12-07 20:55:27 +00:00
Ted John
2108322806 Use ImageId for picked up peep 2021-12-07 20:17:22 +00:00
Ted John
5f9d03e9df Refactor ImageId and use in more functions 2021-12-03 19:59:33 +01:00
Hielke Morsink
98db974b49 Merge pull request #16085 2021-12-03 19:10:03 +01:00
Hielke Morsink
9615dda192 Reimplement hotkey handler for toggling visibility 2021-12-03 00:24:56 +01:00
Hielke Morsink
1035725fd2 Fix shortcuts for top-toolbar buttons 2021-12-03 00:18:54 +01:00
Hielke Morsink
325b986c56 Merge pull request #15489 2021-12-03 00:16:06 +01:00
Duncan
79b12d2953 Introduce DATLimits.h for RCT2 Dat file object limits (#16034) 2021-12-01 21:55:52 +00:00
Hielke Morsink
e4fc0d8388 Fix #16083: Tile Inspector shortcuts mapped incorrectly
This really needs to be refactored so that this does not need manual updating every time the order of widgets changes.
2021-12-01 09:51:40 +01:00
Hielke Morsink
1ba75205e9 Add comment and use more consistent naming 2021-12-01 00:17:49 +01:00
Hielke Morsink
bd338fc7d2 Add DISABLE_OPENGL guard in ZoomLevel::min 2021-12-01 00:11:48 +01:00
Hielke Morsink
0f2dffcc16 Apply review suggestions 2021-12-01 00:11:45 +01:00
Hielke Morsink
dbd50d08c6 Split double meaning of "max zoom" in screenshot code
One being the max value, the other being the max amount of zoom levels.
2021-12-01 00:08:41 +01:00
Hielke Morsink
53d9bfa8b4 Update implicit zoom conversions 2021-12-01 00:08:35 +01:00
Hielke Morsink
fdce5df6db Reduce nested ifs and remove ?: in main_window_zoom 2021-11-30 19:11:36 +01:00
Hielke Morsink
3f669cae85 Use zoomlevel some more 2021-11-30 19:11:32 +01:00
Hielke Morsink
f3735dc076 Use ZoomLevel for viewport and ride window 2021-11-30 19:11:08 +01:00
Hielke Morsink
95ba1654c7 Make ZoomLevel operators constexpr 2021-11-30 19:11:07 +01:00
ζeh Matt
c4ad5fcd15 Adjust includes 2021-11-26 21:01:44 +02:00
ζeh Matt
9f23449ffb Move Staff/Guest/Peep to entity 2021-11-26 18:26:19 +02:00
ζeh Matt
0024252328 Fix includes 2021-11-24 17:19:52 +02:00
ζeh Matt
03fb9b390f Rename Sprite to EntityRegistry 2021-11-24 17:04:12 +02:00
ζeh Matt
7c726e2a0c Fix includes 2021-11-24 16:48:33 +02:00
ζeh Matt
c6242fd310 More renaming 2021-11-24 15:50:18 +02:00
IntelOrca
34128dc262 Add new .park save format
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com>
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com>
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com>
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com>
2021-11-21 22:43:22 +01:00
Hielke Morsink
0b691fa09a Fix #15928: Tile inspector hotkeys mapped incorrectly 2021-11-18 23:02:36 +01:00