1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Part of #9473: Create Vehicle::InvalidateWindow

Converted from vehicle_invalidate_window
This commit is contained in:
hdpoliveira
2020-04-19 02:01:07 -03:00
parent 49be02dbfd
commit 421fc5bc59
2 changed files with 4 additions and 4 deletions

View File

@@ -9806,10 +9806,10 @@ int32_t vehicle_get_total_num_peeps(const Vehicle* vehicle)
*
* rct2: 0x006DA1EC
*/
void vehicle_invalidate_window(Vehicle* vehicle)
void Vehicle::InvalidateWindow()
{
auto intent = Intent(INTENT_ACTION_INVALIDATE_VEHICLE_WINDOW);
intent.putExtra(INTENT_EXTRA_VEHICLE, vehicle);
intent.putExtra(INTENT_EXTRA_VEHICLE, this);
context_broadcast_intent(&intent);
}
@@ -9985,7 +9985,7 @@ void Vehicle::SetState(VEHICLE_STATUS vehicleStatus, uint8_t subState)
{
status = vehicleStatus;
sub_state = subState;
vehicle_invalidate_window(this);
InvalidateWindow();
}
bool Vehicle::IsGhost() const