Commit Graph
90 Commits
Author SHA1 Message Date
Gymnasiast 7ae98f7421 Use EnumsToFlags() and create a proper enum 2024-03-11 01:12:35 +01:00
Gymnasiast 632f29e6a9 Name segment constants 2024-03-11 00:22:35 +01:00
Gymnasiast 849af8c2d8 Split Supports.{cpp,h} into two 2024-02-19 21:59:59 +01:00
James103 1d8dc111f1 Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
Matthias Moninger 279a056125 Fix #20543: Crash using show segments height from debug paint option. (#20561)
* Fix #20543: Crash using show segments height debug option

* Update changelog.txt
2023-07-05 08:05:53 +01:00
Aaron van Geffen d425e0a8bb Remove const qualifier from constexpr statements 2023-06-24 11:45:26 +02:00
Gymnasiast 3e764677da Use dpi ref in paint folder 2023-04-11 22:57:25 +01:00
Michael Steenbeek 70af1c6c0d Clean up PaintAddImageAsParent() calls (#19392) 2023-02-13 22:07:39 +00:00
Duncan 859b071ddc Rename classes with snakes OpenRCT2/A*-F* (#19215)
* Rename classes with snakes OpenRCT2/A*-F*

* Clang format files
2023-01-19 08:16:44 +00: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
spacek531 aa685e4cf6 move session flags into new header (#18504)
* move session flags into new header
2022-11-04 05:50:36 +00:00
Hielke Morsink f91df4138c Merge pull request #18359 2022-10-18 23:39:49 +02:00
Hielke Morsink 3bb8ea3668 Better annotate some magic numbers in for loops 2022-10-17 16:08:55 +00:00
Hielke Morsink abac080d3e Rename public general config data members 2022-10-16 21:46:01 +02:00
Rik Smeets c80bd455e9 Code style: Remove struct snakes from Paint (#18341) 2022-10-14 20:26:36 +02: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 8e33cf580f Code style: Remove snakes from virtual floor 2022-10-08 20:50:59 +02:00
Rik Smeets c5904d81d6 Code Style: Remove snakes from paint tile elements (#18212) 2022-10-05 21:27:38 +02:00
73 8c3ff1bfa8 Replace Transparancy with Transparency 2022-10-04 18:28:15 +02: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
Gymnasiast 26c080a0d7 Remove unused symbols, fixes 2022-09-30 00:01:13 +02:00
Gymnasiast a69a8fa7e8 Remove uint32_t overloads in Paint functions 2022-09-29 21:17:16 +02:00
Michael Steenbeek 6f3790cf98 Modify ride drawing code to use ImageId 2022-09-28 21:36:56 +02:00
Michael Steenbeek 88b3e88bdd Remove Testpaint (#17333)
TestPaint served us well, but it hasn’t compiled for years, and before that it produced incorrect results for years.
2022-06-06 10:07:07 +02:00
Duncan d09140aaed Minor Paint refactor (#17144)
* Tidy up masked paint code

Its only used by surface elements and only then by attached ps's so no need to support it in the normal ps.

* Remove unneeded function
2022-05-06 06:46:50 +01:00
Ted John 8aafab2a70 Split paint item into element and entity 2022-03-14 21:55:15 +00:00
ζeh Matt d9bdc1441f Rename IsPassedSurface to PassedSurface and cleanup values 2022-02-25 01:21:36 +02:00
ζeh Matt b5d6abdd22 Refactor out DidPassSurface and rename Unk141E9DB to Flags 2022-02-25 00:34:24 +02: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 202999a8b4 Pass CoordsXY into PaintTileElementBase 2022-01-23 14:53:03 +01:00
Gymnasiast 573a28f835 Rename sub_68B3FB to PaintTileElementBase 2022-01-23 14:50:16 +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
Gymnasiast aa34f0f760 Drop the N postfix 2021-12-11 00:39:39 +01:00
Gymnasiast fc3ce3294c Move over switches to normalised tile element types 2021-12-11 00:30:59 +01:00
Michael Steenbeek 2d1af0ec42 Replace many GetType() calls with GetTypeN() 2021-12-10 22:43:17 +01:00
Hielke Morsink 53d9bfa8b4 Update implicit zoom conversions 2021-12-01 00:08:35 +01:00
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
DuncanandGymnasiast e13307a28d Small cleanup of variables (#13655)
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com>
2021-10-20 23:51:06 -03:00
Hielke Morsink 9dd20ec619 Improve array formatting
For most of these cases, adding a trailing comma to the array block makes clang-format put each item on a new line, and clang-format exception blocks could be reduced where clang-format does not handle them properly.
2021-10-17 18:21:45 +02:00
Hielke Morsink 94144bcd89 Remove some dead code
Reported by clang
clang-analyzer-deadcode.DeadStores
2021-09-30 10:40:32 +02:00
ζeh Matt b733e97bfa Remove numerics from common.h and use it as needed 2021-09-11 20:21:08 +03:00
Michael Steenbeek 8f5ec43486 Pass derived tile element classes to functions (#15206) 2021-08-11 23:26:46 +02:00
duncanspumpkin ae6657dcdc Close #14903. Use map_is_edge 2021-07-19 12:17:22 +02:00
Duncan 35ba734669 Minor paint refactor (#14905)
Names a few unknown flags
2021-06-22 07:36:17 +01:00
Matt fcf8903304 Refactor uses of PaintAddImageAsParent in Paint.TileElement.cpp 2021-06-05 17:16:03 +03:00
duncanspumpkin 98f9f24909 Remove sprite.h includes where possible 2021-05-29 08:54:33 +01:00
Dennis Devriendt 3073cca6aa Close #13624: Refactor ViewportInteractionItem to use strong enum (#13657)
* Closes #13624: Refactor ViewportInteractionItem to use strong enum
2020-12-29 15:09:15 -03:00