Fixed player stuck shooting in certain situations
This commit is contained in:
@@ -430,10 +430,6 @@ public class DesktopInput extends InputHandler{
|
||||
}
|
||||
}
|
||||
|
||||
if(Core.input.keyRelease(Binding.select)){
|
||||
player.shooting = false;
|
||||
}
|
||||
|
||||
if(state.isGame() && !scene.hasDialog() && !scene.hasField()){
|
||||
if(Core.input.keyTap(Binding.minimap)) ui.minimapfrag.toggle();
|
||||
if(Core.input.keyTap(Binding.planetMap) && state.isCampaign()) ui.planet.toggle();
|
||||
@@ -560,6 +556,10 @@ public class DesktopInput extends InputHandler{
|
||||
changedCursor = false;
|
||||
}
|
||||
}
|
||||
|
||||
if(Core.input.keyRelease(Binding.select)){
|
||||
player.shooting = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user