1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 08:45:00 +01:00
Commit Graph

8840 Commits

Author SHA1 Message Date
Michał Janiszewski
fd4e6bd031 Fix crash after alt-tab (#16070) 2022-04-09 11:12:34 +01:00
Michael Steenbeek
e9213e3ecf Fix switched order of imageids on looping coasters (#16951) 2022-04-09 00:34:55 -03:00
Duncan
9c9b554813 Fix #16890. Incorrect rotation for splash boats (#16949) 2022-04-09 00:32:17 -03:00
Michael Steenbeek
5e82e9048b Add missing includes 2022-04-07 21:42:08 +02:00
Duncan
5760f11349 Simplify Track Cost calcs (#16940)
* Multiply out 5 in track cost calcs and use _GBP

* Fix typo on Hypercoaster conversion

* Use two decimals for literals converted by _GBP

Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-04-07 11:35:11 +01:00
spacek531
435c38b528 Fix vertical sprite count math 2022-04-06 15:36:39 +02:00
Michael Steenbeek
765bc59acd Merge pull request #14207 from geoff-B/money32-UDL
#14093 User defined literals for Money32
2022-04-06 15:29:26 +02:00
X123M3-256
605112297d Implement RIDE_ENTRY_FLAG_RIDER_CONTROLS_SPEED (#16837) 2022-04-06 08:38:24 -03:00
Rik Smeets
760c96224c Prevent slow motion jumps in Maze 2022-04-06 10:42:00 +02:00
X123M3-256
e4760c1486 Rewrite numbering of some track sprites (#16930) 2022-04-05 21:48:04 -03:00
Hielke Morsink
791b3ad857 Add dummy cheat to avoid future issues 2022-04-05 19:55:49 +02:00
Hielke Morsink
4328a355c0 Apply coding style to surrounding variables 2022-04-05 19:55:49 +02:00
Hielke Morsink
fd09fc2ce8 Replace hardcoded thought indices with identifiers 2022-04-05 19:55:48 +02:00
Hielke Morsink
c429fc329a Add a new warning for queue length complaints 2022-04-05 19:55:48 +02:00
Hielke Morsink
7db9aeb709 Remove max queue length limit 2022-04-05 19:55:47 +02:00
Hielke Morsink
b66d15659f Remove the new cheat that disable queue length limits
This partially reverts commit 0ece5d0f44.
2022-04-05 19:55:44 +02:00
Hielke Morsink
5c4675a150 Fix: call to std::set_difference with unordered lists 2022-04-02 23:03:07 +02:00
Charles Machalow
0ece5d0f44 Add a new cheat to disable queue length limits 2022-04-02 20:07:06 +02:00
Tulio Leao
67c14ada3c Add int32_t overload for ToMoney32FromGBP 2022-04-01 07:32:03 -03:00
Tulio Leao
e63432a416 Add ToGBP function to convert non literals to money32 2022-03-31 17:54:52 -03:00
Tulio Leao
90dbe60a1f Fix Money values magnitude after _GBP change 2022-03-29 07:23:35 -03:00
Tulio Leao
4bb17e643b Make whole ShopItems array use _GBP 2022-03-29 07:23:35 -03:00
Geoff Banh
85baa6f7ca Fix #14093: Replace MONEY macro with user defined literal 2022-03-29 07:23:35 -03:00
Rik Smeets
4e8ea47e1b Guests with umbrellas no longer always avoid Maze when it rains (#16859)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-03-28 23:26:56 -03:00
spacek531
047a7f8090 Do not turn off chain when building downhill if chain cheat is on 2022-03-28 20:34:37 +00:00
Gymnasiast
bd7ac0bace Revert "Reduce duplication of gx readers (#16882)"
This reverts commit 2b371db8e3.
2022-03-28 21:49:26 +02:00
X123M3-256
f5507c42e0 Add RIDE_TYPE_FLAG_UP_INCLINE_REQUIRES_LIFT 2022-03-28 21:32:42 +02:00
tupaschoal
ab86d19510 Apply review requests 2022-03-28 20:40:53 +02:00
lawrence
4c14d38325 Fix #16308: Use void* on Android and Any on other platforms 2022-03-28 20:38:33 +02:00
lawrence
5f417987bc Fix #16308: Crash when trying to place down a ride on Android 2022-03-28 20:38:08 +02:00
Michael Steenbeek
07f66f2322 Merge pull request #16872 from IntelOrca/plugin/image-apis
[Plugin] Add support for custom images
2022-03-28 20:27:10 +02:00
Duncan
2b371db8e3 Reduce duplication of gx readers (#16882)
* Reduce duplication of gx readers

* Readd nographics return
2022-03-28 09:32:33 +01:00
Ted John
d6d61ddd44 Merge pull request #16842 from IntelOrca/fix/large-scenery-colours
Fix custom large scenery appearing black.
2022-03-25 22:15:15 +00:00
Duncan
36e1a10431 Revert some of #16477 and fix scenery costs (#16877)
Split up supports and clearance costs

Add notes
2022-03-25 21:47:19 +00:00
spacek531
896ce5b68c Remove unused function WritePackedObjects 2022-03-25 08:46:38 +01:00
Ted John
886a2ff218 Fix include line 2022-03-24 23:50:39 +00:00
Ted John
372606ab9a Increment plugin API version 2022-03-24 23:18:55 +00:00
Ted John
818dcacb31 Add draw to image API 2022-03-24 22:37:22 +00:00
Ted John
e3a1733cdd Implement plugin ownership of images 2022-03-24 22:37:22 +00:00
Ted John
8f30ed910f Start working on custom image APIs 2022-03-24 22:37:21 +00:00
Tulio Leao
0e607ed0a3 Fix #13857: Removal price underflowing (#16858) 2022-03-23 21:14:03 +00:00
Duncan
472f7f55c5 Remove hard cap of 0x80 scenery items in a group (#16853)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2022-03-22 21:38:54 -03:00
Duncan
c5b5b95bcd Show better errors when loading scenery groups (#16854) 2022-03-22 21:01:52 -03:00
Ted John
a2f7ffcb71 Merge pull request #16707 from IntelOrca/plugin/intransient-2
Add initial functionality for intransient plugins. Intransient plugins are a new type of plugin that will start when OpenRCT2 launches, and remain loaded until shutdown. This provides plugins with the ability to hook map change and provide functionality on other screens such as the title menu.

**Example:**
```js
registerPlugin({
    type: 'intransient',
   ...
});
```

The [title sequence editor](https://github.com/OpenRCT2/title-sequence-editor) will be an intransient plugin so that it can be used from the title screen like the built in one.

Three new APIs have been introduced alongside this.
* `context.mode`
* `context.subscribe('map.change', callback)`
* `context.subscribe('map.changed', callback)`
* `ui.registerToolboxMenuItem(text, callback)`
2022-03-22 21:48:26 +00:00
Duncan
ba8690d970 Move *10 on removal/price to the object load function (#16846)
This simplifies the code and ensures that money32/16 is at the same base for all users of these objects
2022-03-22 21:35:44 +00:00
Ted John
a9d2c87d65 Bump plugin API version 2022-03-22 21:11:51 +00:00
alcz
45369e3497 Fix #16565: Ducks/birds always spawn at the edge of the old map limit (#16844)
* Fix #16565: Ducks/birds always spawn at the edge of the old map limits

Fix #16565: birds/ducks spawning at fixed 255-sized map boundary.

Instead spawn at actual map boundary (MapSizeMaxXY) where applicable

* Update Network Version

Increments network version
2022-03-22 16:49:54 +00:00
Ted John
9f96b0df33 Separate map.change and map.changed events
Also fix network plugin logic.
2022-03-21 23:09:40 +00:00
Ted John
e4a10b8eb4 Fix and improve plugin startup / shutdown 2022-03-21 21:43:02 +00:00
Ted John
3864795a08 Improve safety on event handlers from windows 2022-03-21 21:42:30 +00:00