1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +01:00
Commit Graph

322 Commits

Author SHA1 Message Date
ζeh Matt
00c5a440be Fix ghost scenery not being removed 2021-10-29 20:11:03 +03:00
ζeh Matt
16ce6641f0 Remove unnecessary assignment to gGameCommandErrorTitle, unused. 2021-10-29 17:01:44 +03:00
ζeh Matt
d1e5a5d977 Refactor last uses of place_virtual_track 2021-10-29 02:06:59 +03:00
ζeh Matt
965179ecb4 Return GameActions::Result from TrackDesignPlaceAllScenery 2021-10-29 02:06:59 +03:00
ζeh Matt
1bb7b1c736 Return GameActions::Result from TrackDesignPlaceSceneryElement 2021-10-29 02:06:59 +03:00
ζeh Matt
957beb22cc Simplify logic in TrackDesignPlaceSceneryElement 2021-10-29 02:06:59 +03:00
ζeh Matt
bdb2a500bb Return GameActions::Result in TrackDesignPlaceSceneryElementRemoveGhost 2021-10-29 02:07:00 +03:00
ζeh Matt
5ef99ef549 Use TrackDesignPreviewRemoveGhosts over place_virtual_track 2021-10-29 02:06:59 +03:00
ζeh Matt
162b0ce321 Use TrackDesignPreviewDrawOutlines over place_virtual_track 2021-10-29 02:06:59 +03:00
ζeh Matt
4ab6a3721d Use TrackDesignGetZPlacement over place_virtual_track 2021-10-29 02:06:59 +03:00
ζeh Matt
aa3f0abaa2 Return GameActions::Result in TrackDesignPlaceMaze/TrackDesignPlaceRide 2021-10-29 02:06:59 +03:00
ζeh Matt
545b01e7e1 Rename track design functions to PascalCase 2021-10-29 02:06:59 +03:00
ζeh Matt
f509c75df5 Rename state variables 2021-10-29 02:06:59 +03:00
ζeh Matt
d779a4f389 Fix track design preview not drawing 2021-10-29 02:06:59 +03:00
ζeh Matt
cd7e35044a Move statics into TrackDesignState and pass that to each function 2021-10-29 02:06:59 +03:00
Sijmen
cec8447c6f Refactor Viewport.cpp to use ScreenRect (#15790) 2021-10-27 00:13:38 -03:00
ζeh Matt
7f3dc5c001 Fix fallback for missing path objects 2021-10-15 01:12:38 +03:00
ζeh Matt
0ef4ed35e9 Fix scenery being disabled, footpath railings don't exist in develop 2021-10-11 20:28:13 +03:00
ζeh Matt
6f8e017a32 Backport track design changes
Co-authored-by: Ted John <ted@brambles.org>
2021-10-11 20:28:13 +03:00
ζeh Matt
dc44d1f79d Merge pull request #15511 from ZehMatt/refactor/ridecreateaction-result
Refactor RideCreateAction result data passing
2021-10-03 07:55:14 -07:00
ζeh Matt
2597c04eb4 Refactor RideCreateAction result data passing 2021-10-02 00:50:03 +03:00
Hielke Morsink
1d62a902e7 Make scenery_small_entry_has_flag a member function (#15509) 2021-10-01 16:50:05 -03: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
719a5a9d8e Merge pull request #15369 from ZehMatt/refactor/tile-coords
Refactor overload map_get_first_element_at
2021-09-21 14:36:03 -07:00
Hielke Morsink
4b4b3333d6 Remove unnecessary else blocks 2021-09-16 18:31:12 +02:00
Gymnasiast
bdab3219cb Modify object loading for JSON-only objects 2021-09-15 11:28:39 +02:00
Michael Steenbeek
37821ce25e Merge pull request #15336 from Gymnasiast/refactor/more-paths
Prepare footpath handling for surfaces and railings (from NSF)
2021-09-15 10:58:01 +02:00
ζeh Matt
59a6c34db4 Make use of std::optional strict 2021-09-13 20:02:32 +03:00
IntelOrca
4f319d6ed4 Prepare footpath handling for surfaces and railings 2021-09-12 17:52:01 +02:00
ζeh Matt
b733e97bfa Remove numerics from common.h and use it as needed 2021-09-11 20:21:08 +03:00
ζeh Matt
e5eb8f84cf Apply review suggestions 2021-09-10 19:36:14 +03:00
ZehMatt
3ad72baaae Cast fixes 2021-09-10 19:10:12 +03:00
Michael Steenbeek
624a32e93b Make Coords isNull/setNull functions TitleCase (#15382) 2021-09-08 20:48:53 -03:00
ζeh Matt
79ab832000 Fix overload resolution for map_get_first_element_at 2021-09-07 22:36:16 +03:00
Gymnasiast
4cc717ccdb Rework path surface and railings descriptor handling 2021-09-05 19:09:09 +02:00
Gymnasiast
2282f24404 Rename path surface and railings descriptors 2021-09-05 19:09:09 +02:00
spacek531
ebc201aaf2 comment and rename
refactor to class method

fix formatting

rename function

rename another

rename sub_6C683D

rename loc_6CD18E

annotate ride_get_entrance_or_exit_position_from_screen_position

fix format

rename loop value

fix formatting again

rename functions to TitleCase
2021-09-02 19:47:22 -07:00
frutiemax
450bf61ee4 Part of #13874: TrackSequenceProperties, Pricing and MirrorMap renamed 2021-08-29 10:45:17 -04:00
frutiemax
5f438535ad Part of #13874: Gymnasiast review 2021-08-27 17:57:10 -04:00
frutiemax
9c53fe252d Part of #13874: ZehMatt review changes 2021-08-27 17:44:33 -04:00
frutiemax
382315b2c3 Part of #13874: Replace block tables 2021-08-22 17:57:56 -04:00
frutiemax
716dd3dcb6 Part of #13874: Replace mirror maps 2021-08-22 17:52:56 -04:00
frutiemax
80418efafb Part of #13874: Replace TrackCoordinates 2021-08-22 17:49:00 -04:00
Duncan
940cab87d3 Map size refactors from NSF (#15112)
* Support large map sizes

* Fix top spin painting

* Fix crooked house

* Increase bb size

* Decrease limit back

* Clang format

* Remove asserts and apply review comments

* Fix rebase mistake

Co-authored-by: Ted John <ted@brambles.org>
2021-08-16 20:51:16 +01:00
Gymnasiast
33b0963f53 Move scenery cost addition to the caller 2021-08-15 13:39:04 +02:00
Gymnasiast
c071b61d3e Use std::optional instead of std::pair 2021-08-15 13:12:05 +02:00
Gymnasiast
72404f1b85 Eliminate _trackDesignPlaceCost 2021-08-15 13:12:05 +02:00
Michael Steenbeek
177f19f64e Remove unused track design symbols 2021-08-11 13:52:23 +02:00
Michael Steenbeek
b4f3923162 Name byte_9D8150 2021-08-08 18:10:52 +02:00
Gymnasiast
5a721cc5e2 Make track_design_place_all_scenery() take a CoordsXYZ 2021-08-07 23:12:34 +02:00