Commit Graph

21427 Commits

Author SHA1 Message Date
saad
ab96ca8516 Fix #14918 rename eax and refactor while loop to avoid overflow 2021-07-30 19:34:42 +04:00
saad
fd823c8acb Fix #14918 refactor while loop and int variable size 2021-07-30 18:38:42 +04:00
andrewpratt64
62d66ca9d0 Add hook for vehicle crashes to plugin api (#15084)
* Add initial implementation of "vehicle.crash" hook for the scripting api

The hook will fire whenever a vehicle crashes, i.e. an individual car
explodes and it's status becomes "Crashed!"

* Update contributors.md

Add name to contributors list under the "Additional implementation (OpenRCT2)" section.

- If the added line needs to be changed or removed entirely let me know

- I added this based off of the Github wiki: "If it's the first time you're contributing with the project, make sure to update the contributors.md file by appending your name at the end of the respective list."

* Move hook code into function

* Rename hook function

Renamed function, "FireVehicleCrashHook" to "InvokeVehicleCrashHook"

* Wrap InvokeVehicleCrashHook in #ifdef

Move the #ifdef from inside the function body to the outside

* Update changelog and api version

- Added entry to changelog
- Increment API version

* Fix whitespace

Replace tab character with four spaces

* Update src/openrct2/scripting/HookEngine.cpp

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2021-07-30 09:03:15 -03:00
OpenRCT2 git bot
2eb1ee631b Merge Localisation/master into OpenRCT2/develop 2021-07-30 04:08:04 +00:00
Michael Steenbeek
dac7d76e7a Merge pull request #15058 from ZehMatt/enummap
Refactor lookup tables to use EnumMap
2021-07-29 16:51:10 +02:00
Michael Steenbeek
86af7f486d Fix spelling of “continuous” 2021-07-29 17:07:49 +03:00
ZehMatt
cd43cab999 Add tests for EnumMap 2021-07-29 17:07:49 +03:00
ZehMatt
d9f9e7542a Use EnumMap for HookEngine lookups 2021-07-29 17:07:49 +03:00
ZehMatt
e520e4f991 Use EnumMap for RideObject lookup tables 2021-07-29 17:07:48 +03:00
ZehMatt
e991c128dc Use EnumMap for format token lookups 2021-07-29 17:07:48 +03:00
ZehMatt
3fbfa26dd3 Use EnumMap for Cursors string lookup 2021-07-29 17:07:48 +03:00
ZehMatt
f44687b6b2 Use EnumMap for lookup tables in scripting 2021-07-29 17:07:48 +03:00
ZehMatt
ce8040b858 Use EnumMap for string to colour conversion 2021-07-29 17:07:48 +03:00
ZehMatt
a36e0a32f7 Add EnumMap container for bidirectional key, enum mapping 2021-07-29 17:07:48 +03:00
Michael Steenbeek
1ea9bbbb1b Fix formatting 2021-07-29 13:32:48 +02:00
Kane
dbdca55645 Fix #14316: Closing the Track Designs Manager window causes broken state
When exiting the Track Design Manager window the user was placed into the scenario editor in a broken state.
User is now returned to the main menu when the window is closed.
2021-07-29 12:44:24 +02:00
OpenRCT2 git bot
d01a3a783a Merge Localisation/master into OpenRCT2/develop 2021-07-29 04:07:50 +00:00
Michael Steenbeek
71ff9bf6d6 Allow loading images from .pob files (#15122) 2021-07-28 21:25:51 +02:00
ζeh Matt
87007ba2a3 Change track paint signature to pass ride instead of ride index 2021-07-28 18:21:59 +02:00
Michael Steenbeek
193e9b0e11 Merge pull request #15118 from Gymnasiast/no-platforms
"No platforms" stations from NSF
2021-07-28 15:34:59 +02:00
Gymnasiast
6f9468a316 Implement invisible platforms on some tracked rides 2021-07-28 11:23:09 +02:00
Gymnasiast
5486dd3fa4 Hide wooden platforms when the “no platforms” station style is selected 2021-07-28 11:22:55 +02:00
Gymnasiast
bb682ca09d Hide brown base on flat rides if "no platform" station style is selected 2021-07-28 11:22:44 +02:00
Michael Steenbeek
ab18612882 Remove Music Acknowledgements window (#15116)
It was of limited use to us anyway since we didn’t license the music ourselves, but now the actual track names and composers are shown in the Object Selection, the window lost its last bit of usefulness.
2021-07-28 10:26:35 +02:00
Michael Steenbeek
f3aac0bb96 Merge pull request #15113 from ZehMatt/fix-nsf-pathfinding
Fix path finding for larger maps
2021-07-28 09:21:52 +02:00