Better interrupted animation checks
This commit is contained in:
parent
0af7372a43
commit
0d398b7656
Binary file not shown.
|
@ -123,10 +123,12 @@ namespace Rimworld_Animations {
|
|||
base.CompTick();
|
||||
|
||||
if(Animating) {
|
||||
tickAnim();
|
||||
if (pawn?.jobs?.curDriver == null || (pawn?.jobs?.curDriver != null && !(pawn?.jobs?.curDriver is rjw.JobDriver_Sex))) {
|
||||
isAnimating = false;
|
||||
}
|
||||
else {
|
||||
tickAnim();
|
||||
}
|
||||
}
|
||||
}
|
||||
public void animatePawn(ref Vector3 rootLoc, ref float angle, ref Rot4 bodyFacing, ref Rot4 headFacing) {
|
||||
|
|
Loading…
Reference in New Issue