mirror of https://github.com/OpenRCT2/OpenRCT2.git
Script: when changing staff type, reset state to walking
Reset state to walking to prevent invalid actions from carrying over
This commit is contained in:
parent
03926c46d0
commit
1a47acf276
|
@ -84,6 +84,10 @@ namespace OpenRCT2::Scripting
|
|||
peep->AssignedStaffType = StaffType::Entertainer;
|
||||
peep->SpriteType = PeepSpriteType::EntertainerPanda;
|
||||
}
|
||||
|
||||
// Reset state to walking to prevent invalid actions from carrying over
|
||||
peep->Action = PeepActionType::Walking;
|
||||
peep->ActionSpriteType = peep->NextActionSpriteType = PeepActionSpriteType::None;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue