This commit is contained in:
Anuken
2020-05-28 12:16:35 -04:00
parent fbc2d13435
commit c5c8d646f7
5 changed files with 6 additions and 9 deletions

View File

@ -563,7 +563,7 @@ public class DesktopInput extends InputHandler{
if(aimCursor){
unit.lookAt(mouseAngle);
}else{
if(!unit.vel().isZero(0.01f)){
if(unit.moving()){
unit.lookAt(unit.vel().angle());
}
}