Commit Graph
21138 Commits
Author SHA1 Message Date
Aaron van Geffen d2e01dde4e Remove a bunch of Util.h includes 2024-10-29 13:12:52 +01:00
Aaron van Geffen 43be4d1d92 Remove dependency on Drawing.h from Climate.h 2024-10-29 13:12:25 +01:00
Aaron van Geffen ece199176e Move UnitConversion from Util into its own compilation unit 2024-10-29 11:27:00 +01:00
Aaron van Geffen 4e27bac292 Move Compression from Util into its own compilation unit 2024-10-29 11:16:26 +01:00
Aaron van Geffen 9436a9501e Move bitScanForward from Util.h to Numerics.hpp 2024-10-29 11:08:39 +01:00
Aaron van Geffen 80b63a5ae7 Add line breaks after template declarations (#23086)
* Add line breaks after template declarations

* Additional clang-format patches
2024-10-29 16:54:01 +01:00
mix db36421974 Fix #21221: Improve car sprite fallback on sloped diag banked track 2024-10-27 22:38:10 +01:00
mix e6665504fb Stop large corks, medium loops, zero g being built if no train sprites 2024-10-27 18:14:02 +01:00
mix 2bcf24f3d3 Add medium and large half loops to the Wooden Roller Coaster 2024-10-27 00:03:46 +02:00
Aaron van Geffen 5931996edc [Plugin] Invalidate window after changing its colours 2024-10-26 23:30:17 +02:00
Aaron van Geffen 1c61c24ec2 Add clamp to map size text input (#23050) 2024-10-25 19:34:26 +02:00
Aaron van Geffen abb3870212 Remove dead code from Viewport.cpp (#23049) 2024-10-25 07:23:38 +01:00
Michael Steenbeek f4d2dadfe7 Close #23018: Close windows before loading new game 2024-10-23 20:33:37 +02:00
Sjoerd de Bruin 1ff192b8a0 Fix #23044: "remove_unused_objects" command causes blank peep names 2024-10-23 11:24:14 +02:00
Michael Steenbeek 4b0b32b2b7 Fix #22920: Crash when sacking a staff member 2024-10-23 11:15:55 +02:00
Duncan 75d06c8b89 Fix #23023: Incorrect large scenery clearance calculation 2024-10-21 21:58:25 +02:00
Michael Steenbeek 8fe2d7de1f Rename Object and TileElement type constant (#23030)
* Rename Object::objectType to  Object::kObjectType

* Rename TileElement::ElementType to TileElement::kElementType
2024-10-20 07:10:55 +01:00
Michael Steenbeek 0d6ed8efc5 Close windows before loading another save 2024-10-18 09:14:50 +02:00
Duncan 236f4afbd7 Fix default supports for large scenery (#23014) 2024-10-17 20:19:06 +00:00
Aaron van Geffen 0c842d795e Fix .sea files not being listed in scenario index (#23013) 2024-10-17 21:27:25 +02:00
Duncan f6582647f5 Large scenery tiles 2 (#22888)
* Use std::span for tiles

* Add an index helper parameter

* Use coordsxyz

* Split up corners and walls

* Use bools for the two flags

* Apply coding style

* Refer only to LargeSceneryObject where required

* Address comments
2024-10-16 22:35:29 +01:00
Michael Steenbeek 8063c5caa7 Reduce casting for objects 2024-10-16 14:12:25 +02:00
Duncan 5934dc6380 Remove void* obj from RideEntry 2024-10-16 10:50:38 +02:00
mrmbernardi 9eb6ee2417 Fix UB from unaligned load of RLE line offsets 2024-10-15 22:03:38 +02:00
Michael Steenbeek a2ed026264 Split up remaining tile elements 2024-10-15 22:02:31 +02:00
Gymnasiast 66c1ddde91 Remove two unused functions from MemoryStream 2024-10-15 17:47:45 +02:00
Gymnasiast 2599432b95 Remove unused Memory.hpp array functions 2024-10-15 17:44:41 +02:00
Gymnasiast 449d884434 Remove unused Collections::ToArray() 2024-10-15 17:43:05 +02:00
Michael Steenbeek 0ec76e09d4 Remove unused IStream::ReadString() function and fix includes 2024-10-15 17:39:54 +02:00
Michael Steenbeek 1ccef10b19 Fix #22633: Crash when drawing loading screen with an outdated g2.dat 2024-10-15 14:01:46 +00:00
Michael Steenbeek 8a9d5edc2d Fix #22615: Crash when drawing Space Rings with invalid ride entry 2024-10-15 15:50:42 +02:00
mrmbernardi aea385a6ab Fix PatrolArea and AudioSource memory leaks (#22992) 2024-10-15 12:16:56 +00:00
Michael Steenbeek 71ce725a2a Split off BannerElement and TrackElement (#22955) 2024-10-14 14:26:10 +02:00
Michael Steenbeek 2e877aa581 Eliminate Loc6DBF3E 2024-10-14 08:13:08 +02:00
Aaron van Geffen af7a2de72c Fix fuzzy horizontal-to-vertical line transitions in charts (#22962)
* Fix drawLine being off by one in horizontal-to-vertical transitions

* Rename no_pixels local to length

* Amend changelog
2024-10-12 22:49:19 +02:00
ζeh Matt 698a6491fc Ensure the spatial index invalidates when moving the entity position 2024-10-12 04:57:19 +03:00
ζeh Matt 6a90e91237 Bump up network version 2024-10-12 04:18:41 +03:00
ζeh Matt 92ac65720a Remove comment 2024-10-12 04:17:17 +03:00
ζeh Matt 551a6b5275 Move the call to UpdateEntitiesSpatialIndex to more appropriate places 2024-10-12 04:17:17 +03:00
ζeh Matt eda0a75fb8 Code style changes 2024-10-12 04:17:17 +03:00
ζeh Matt dfb053e286 Only iterate over active entities 2024-10-12 04:17:17 +03:00
ζeh Matt 2666a9937e Refactor the spatial indexing into a separate phase 2024-10-12 04:17:17 +03:00
Mathias Gibbens 2c9509f988 Add Linux searchable paths created by game-data-packager
With the changes in #22819, it seems reasonable to add a couple of
default searchable paths for Linux that are created by the
`game-data-packager` utility, available in Debian and its various
derivatives.

Signed-off-by: Mathias Gibbens <gibmat@debian.org>
2024-10-11 19:37:12 +00:00
Michael Steenbeek 52b70703af Turn TrackElemType into a strong enum 2024-10-11 13:30:27 +00:00
Gymnasiast 9bdbeaf563 Mini golf vehicle code: remove more flag checks that are never set 2024-10-07 22:50:34 +02:00
Gymnasiast 7694195db7 Mini golf vehicle code: remove ifs that are always true 2024-10-07 22:50:34 +02:00
Gymnasiast 717622ed01 Cut out Mini Golf inverted code 2024-10-07 22:50:34 +02:00
Gymnasiast 98992ea616 Extract UpdateTrackMotionMiniGolfFlagsStatus() 2024-10-07 22:23:13 +02:00
duncanspumpkin 1cdcbba655 Move wall declarations into wall.h 2024-10-07 22:04:13 +02:00
duncanspumpkin 6283993351 Move WallElement into its own header/source files 2024-10-07 22:04:13 +02:00