diff --git a/1.4/Assemblies/Rimworld-Animations.dll b/1.4/Assemblies/Rimworld-Animations.dll index dbdfdec..0fd1ae9 100644 Binary files a/1.4/Assemblies/Rimworld-Animations.dll and b/1.4/Assemblies/Rimworld-Animations.dll differ diff --git a/1.4/Source/Patches/OtherModPatches/HarmonyPatch_AlienRace.cs b/1.4/Source/Patches/OtherModPatches/HarmonyPatch_AlienRace.cs index 29f822d..2c54831 100644 --- a/1.4/Source/Patches/OtherModPatches/HarmonyPatch_AlienRace.cs +++ b/1.4/Source/Patches/OtherModPatches/HarmonyPatch_AlienRace.cs @@ -78,7 +78,7 @@ namespace Rimworld_Animations { Vector3 vector2 = a + ((offset2 != null) ? offset2.GetOffset(renderFlags.FlagSet(PawnRenderFlags.Portrait), pawn.story.bodyType, pawn.story.headType) : Vector3.zero); vector2.y = (ba.inFrontOfBody ? (0.3f + vector2.y) : (-0.3f - vector2.y)); float num = ba.angle; - if (rotation == Rot4.North) + if (((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead ? pawnAnimator.headFacing : pawnAnimator.bodyFacing) == Rot4.North) { if (ba.layerInvert) { @@ -86,7 +86,7 @@ namespace Rimworld_Animations { } num = 0f; } - if (rotation == Rot4.East) + if (((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead ? pawnAnimator.headFacing : pawnAnimator.bodyFacing) == Rot4.East) { num = 0f - num; vector2.x = 0f - vector2.x; @@ -97,7 +97,7 @@ namespace Rimworld_Animations { Vector3 orassanv = Vector3.zero; bool orassan = false; - + /* if ((pawn.def as ThingDef_AlienRace).defName == "Alien_Orassan") { orassan = true; @@ -153,7 +153,7 @@ namespace Rimworld_Animations { orassanv = orassanv.RotatedBy(pawnAnimator.headAngle); } } - + */ if ((ba.drawnInBed && !forceDrawForBody) || ba.alignWithHead) {