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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user