1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-26 07:22:45 +00:00

Fix for interacting while shooting (#89)

This commit is contained in:
dawnDus 2022-03-14 21:52:32 -04:00
parent ad2beacf40
commit 500f53bebb
No known key found for this signature in database
GPG key ID: 972AABDE81848F21

View file

@ -260,12 +260,14 @@ impl Player {
let trigger_only_down = self.controller.trigger_down()
&& !self.controller.trigger_up()
&& !self.controller.trigger_left()
&& !self.controller.trigger_right();
&& !self.controller.trigger_right()
&& !self.controller.trigger_shoot();
let only_down = self.controller.move_down()
&& !self.controller.move_up()
&& !self.controller.move_left()
&& !self.controller.move_right();
&& !self.controller.move_right()
&& !self.controller.shoot();
if trigger_only_down
&& only_down