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
Michał Janiszewski
b8c751e300
Drop some unnecessary includes
2021-10-09 21:30:24 +02:00
Duncan
fd18ac7f85
Modify StaffSetPatrolAreaAction to have three modes ( #15494 )
...
* Modify StaffSetPatrolAreaAction to have three modes
* Actually serialise mode
* Apply review comments
* Increment network version
* Apply review comment
* Update replay
2021-10-07 18:02:24 +01:00
ζeh Matt
c054967230
Merge pull request #15530 from ZehMatt/refactor/wallplaceaction-result
...
Refactor action result passing for WallPlaceAction
2021-10-06 08:50:57 -07:00
ζeh Matt
976d15ce10
Merge pull request #15529 from ZehMatt/refactor/smallsceneryplaceaction-result
...
Refactor action result passing for SmallSceneryPlaceAction
2021-10-06 08:32:16 -07:00
ζeh Matt
d2ffeaa7b0
Refactor action result passing for WallPlaceAction
2021-10-06 18:31:09 +03:00
ζeh Matt
9cb26f7b02
Refactor action result passing for SmallSceneryPlaceAction
2021-10-06 16:12:37 +03:00
ζeh Matt
8effeb26b0
Refactor action result passing for StaffHireNewAction
2021-10-04 17:01:27 +03:00
ζeh Matt
cf7b4ded08
Move static declaration into cpp file
2021-10-03 21:13:04 +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
24ec2e1b67
Merge pull request #15510 from ZehMatt/refactor/largescenerayplace-result
...
Refactor LargeSceneryPlaceAction result data passing
2021-10-03 07:54:59 -07:00
ζeh Matt
76c2f9db85
Refactor LargeSceneryPlaceAction result data passing
2021-10-02 00:56:59 +03: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
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
Michael Steenbeek
987174e828
Merge pull request #15436 from duncanspumpkin/staff
...
Small Staff Refactor from NSF
2021-09-29 20:46:24 +02:00
frutiemax
2906cb8c89
Fix #14474 : Map size can be synced in multiplayer ( #15312 )
...
* Fix #14474 : Map size can be synced in multiplayer
* Bump up network version
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com >
2021-09-29 16:46:03 +01:00
ζeh Matt
eb2de0222b
Use GetLocation in more places
2021-09-28 03:16:04 +03:00
Michael Steenbeek
f7d61c67e6
Fix arbitrary ride type cheat not working
2021-09-26 16:21:34 +02:00
Michael Steenbeek
1feac16bed
Merge pull request #15414 from frutiemax/develop
...
#15367 : Encode RideType in TrackElement
2021-09-25 12:02:08 +02:00
Hielke Morsink
53c22c9b4b
Check for nullptr explicitly ( #15458 )
2021-09-24 20:05:50 +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
frutiemax
355019f97f
#15367 : Encode RideType in TrackElement
2021-09-21 10:49:28 +02:00
duncanspumpkin
ce75fbcae9
Fix graphics issues with staff fire
2021-09-19 09:17:11 +01:00
duncanspumpkin
6295473c94
Fix merged patrol area bug
2021-09-19 09:15:10 +01:00
duncanspumpkin
5b92f3f9ae
Fix conversion error
2021-09-19 09:05:29 +01:00
duncanspumpkin
ca689c3948
Introduce methods from NSF
...
These methods still call the same legacy functionality for now
2021-09-19 08:28:25 +01:00
Hielke Morsink
77141f57b0
Merge pull request #15416 from Broxzier/refactor/unnecessary-else
...
Remove unnecessary else blocks
2021-09-17 14:56:30 +02:00
ζeh Matt
de85a1788b
Merge pull request #15412 from ZehMatt/refactor/ga-results
...
Allow game actions to store custom data instead of using inheritance
2021-09-16 14:35: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
ζeh Matt
42254d774d
Allow game actions to store custom data instead of using inheritance
2021-09-14 20:25:37 +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
516232e0a7
Change static casts to EnumValue
2021-09-10 19:10:15 +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
07a7946caf
Remove redundant conversions
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
Michael Steenbeek
a40cfae0ff
Merge pull request #15313 from frutiemax/13874_TrackDefinitions
...
Part of #13874 : Add definition field in TrackElementDescriptor
2021-09-05 16:10:11 +02:00
Michael Steenbeek
2f3d4c6861
Merge pull request #15327 from spacek531/rename-ride-validate-function
...
Some housekeeping
2021-09-05 13:26:56 +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
Ted John
3c451a4af4
Use music objects instead of IDs
2021-09-01 10:26:23 +02:00
frutiemax
7e5e9bdf13
Part of #13874 : Add definition field in TrackElementDescriptor
2021-08-29 20:22:48 -04:00
Michael Steenbeek
4bbee1c6ae
Merge pull request #15261 from frutiemax/13874_refactor
...
Track Element Descriptor refactor (issue #13874 )
2021-08-29 22:38:46 +02:00
ζeh Matt
b367f74496
Fix #15199 : Construction window is not closed when a ride gets demolished
2021-08-29 22:20:30 +02:00
frutiemax
450bf61ee4
Part of #13874 : TrackSequenceProperties, Pricing and MirrorMap renamed
2021-08-29 10:45:17 -04:00
frutiemax
b3744f129f
Part of #13874 : Avoid copies of ted
2021-08-28 18:57:46 -04:00
frutiemax
5f438535ad
Part of #13874 : Gymnasiast review
2021-08-27 17:57:10 -04:00