Better interrupted animation checks

This commit is contained in:
Platinum 2020-04-19 11:16:49 -07:00
parent 0af7372a43
commit 0d398b7656
2 changed files with 3 additions and 1 deletions

View File

@ -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) {