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

Remove most usages of 'new Intent'

This commit is contained in:
Gymnasiast
2018-02-05 22:59:44 +01:00
committed by Michael Steenbeek
parent e3c0f6606d
commit cc4f7e144a
9 changed files with 68 additions and 91 deletions

View File

@@ -1177,9 +1177,8 @@ static sint32 cc_load_object(const utf8 **argv, sint32 argc) {
}
scenery_set_default_placement_configuration();
Intent * intent = new Intent(INTENT_ACTION_REFRESH_NEW_RIDES);
context_broadcast_intent(intent);
delete intent;
auto intent = Intent(INTENT_ACTION_REFRESH_NEW_RIDES);
context_broadcast_intent(&intent);
gWindowUpdateTicks = 0;
gfx_invalidate_screen();