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
1 changed files with 4 additions and 2 deletions

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