1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 17:54:50 +01:00
Commit Graph

701 Commits

Author SHA1 Message Date
Michael Steenbeek
4caeb797f8 Merge pull request #16127 from Gymnasiast/feature/rct1-image-fallback
Create fallback system for csg1 images
2021-12-10 23:25:04 +01:00
Michael Steenbeek
2d1af0ec42 Replace many GetType() calls with GetTypeN() 2021-12-10 22:43:17 +01:00
Gymnasiast
fcd704ed47 Create fallback system for csg1 images 2021-12-08 16:18:33 +01:00
Ted John
bd9f7d56c5 Fix #16130: Crash when using see-through rides or scenery 2021-12-05 23:33:09 +01:00
Ted John
5f9d03e9df Refactor ImageId and use in more functions 2021-12-03 19:59:33 +01:00
Michael Steenbeek
9bb2547dfb Use templated function for the Twister and Vertical Drop 2021-12-03 18:00:42 +01:00
Hielke Morsink
53d9bfa8b4 Update implicit zoom conversions 2021-12-01 00:08:35 +01:00
ζeh Matt
9f2e8372ae Rename sprite_paint_setup to EntityPaintSetup 2021-11-27 16:17:02 +02:00
ζeh Matt
7a0fb048f8 Move reorganize structure of Paint.Sprite 2021-11-27 16:16:10 +02:00
ζeh Matt
e3eff3cddf Refactor entity paint setup 2021-11-27 16:07:53 +02:00
ζeh Matt
fd2f3edbf2 Remove Paint.Litter.cpp 2021-11-27 15:55:42 +02:00
ζeh Matt
a1ea1dc4fb Move painting to Litter entity 2021-11-27 15:55:24 +02:00
ζeh Matt
846a270cb3 Remove Paint.Peep.cpp 2021-11-27 15:52:31 +02:00
ζeh Matt
95a2967b75 Move painting into Peep entity 2021-11-27 15:51:54 +02:00
ζeh Matt
97bcfcff82 Remove Paint.Misc.cpp 2021-11-27 15:47:23 +02:00
ζeh Matt
53e4bf1bbf Move painting for MoneyEffect entity 2021-11-27 15:47:05 +02:00
ζeh Matt
686e15fd1a Move painting for SteamParticle entity 2021-11-27 15:43:39 +02:00
ζeh Matt
effddb4a1f Move painting for VehicleCrashParticle entity 2021-11-27 15:42:16 +02:00
ζeh Matt
3db8ef1a75 Move painting for ExplosionCloud entity 2021-11-27 15:39:48 +02:00
ζeh Matt
0e1dbf7cf1 Move painting for SplashCrash entity 2021-11-27 15:38:58 +02:00
ζeh Matt
4ba2314eba Move painting for explosion flare entity 2021-11-27 15:37:32 +02:00
ζeh Matt
bbd95f1910 Move painting for Fountain entity 2021-11-27 15:37:12 +02:00
ζeh Matt
30349f80f5 Move painting for Balloon entity 2021-11-27 15:29:33 +02:00
ζeh Matt
eaff0a343d Move painting for Duck entity 2021-11-27 15:27:41 +02:00
ζeh Matt
dcae493fa0 Move litter sprite definitions into sprites.h 2021-11-27 15:22:59 +02: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
Duncan
275d565e52 Start splitting up ride.h (#16011)
* Start splitting up ride.h

* Use cstdint instead of common.h
2021-11-26 15:03:14 +00: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
Gymnasiast
921ae21ad5 Remove obsolete TODOs 2021-11-21 22:43:22 +01: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
Duncan
3f19d6f7d7 Split Peep header Guest into separate header (#15810)
* Move guest functions and classes to guest header

* Reduce includes of Peep.h
2021-10-28 21:38:23 +01:00
Duncan
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
c2d3ca5f85 Automatically deduce std::array types
This also improves formatting of some arrays with weird or no indention.
2021-10-14 23:27:28 +02:00
Adam
c812b696bd Fix #14741: crash on macOS exit (#15550) 2021-10-10 22:01:18 +01:00
Michał Janiszewski
1b4875e528 Extract math-related functions from common.h to Math.hpp
Saves wide inclusion of <stdexcept> header, which pulls in <string>
2021-10-09 21:43:06 +02:00
Soham Roy
4d27417fd2 Fix #11354: Coding style causes undefined behaviour
An underscore followed by a capital letter used as a prefix might cause
undefined behaviour
2021-10-05 13:58:50 +02:00
Hielke Morsink
1d62a902e7 Make scenery_small_entry_has_flag a member function (#15509) 2021-10-01 16:50:05 -03:00
Michael Steenbeek
317e562845 Merge pull request #15495 from ZehMatt/refactor/xyz-access
Use GetLocation in more places
2021-10-01 14:02:34 +02:00
Hielke Morsink
94144bcd89 Remove some dead code
Reported by clang
clang-analyzer-deadcode.DeadStores
2021-09-30 10:40:32 +02:00
Duncan
8c6f10797b Prevent wasting paint time on unviewable entities 2021-09-29 19:20:43 +02:00
ζeh Matt
eb2de0222b Use GetLocation in more places 2021-09-28 03:16:04 +03:00
ζeh Matt
4ea8902587 Refactor arg passing to sprite_paint_setup 2021-09-27 22:48:06 +03:00
ζeh Matt
cecf4ac202 Use CoordsXY for sprite_paint_setup
Co-authored-by: Ted John <ted@brambles.org>
2021-09-27 22:47:36 +03:00
Hielke Morsink
53c22c9b4b Check for nullptr explicitly (#15458) 2021-09-24 20:05:50 +02:00
Duncan
c05068e8d1 Replace sprite_left,t,r,b with SpriteRect (#15408)
* Replace sprite_left,t,r,b with SpriteRect

This is required for the NSF. I had to add a silly constructor to rct_sprite for now. Will eventually be removed one day...

* Fix compilation and memory leak

* Add some UB to prevent some other UB

* Make review change
2021-09-18 19:07:35 +01:00
Hielke Morsink
4b4b3333d6 Remove unnecessary else blocks 2021-09-16 18:31:12 +02:00