Fix things being detached from mech sway. (#7480)

This commit is contained in:
MEEPofFaith
2022-09-12 06:59:18 -07:00
committed by GitHub
parent 7189be69b0
commit cd6332900b

View File

@@ -1181,10 +1181,6 @@ public class UnitType extends UnlockableContent{
drawShield(unit);
}
if(mech != null){
unit.trns(-legOffset.x, -legOffset.y);
}
//TODO how/where do I draw under?
if(parts.size > 0){
for(int i = 0; i < parts.size; i++){
@@ -1212,6 +1208,10 @@ public class UnitType extends UnlockableContent{
}
}
if(mech != null){
unit.trns(-legOffset.x, -legOffset.y);
}
Draw.reset();
}