1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-11-30 08:08:18 +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() let trigger_only_down = self.controller.trigger_down()
&& !self.controller.trigger_up() && !self.controller.trigger_up()
&& !self.controller.trigger_left() && !self.controller.trigger_left()
&& !self.controller.trigger_right(); && !self.controller.trigger_right()
&& !self.controller.trigger_shoot();
let only_down = self.controller.move_down() let only_down = self.controller.move_down()
&& !self.controller.move_up() && !self.controller.move_up()
&& !self.controller.move_left() && !self.controller.move_left()
&& !self.controller.move_right(); && !self.controller.move_right()
&& !self.controller.shoot();
if trigger_only_down if trigger_only_down
&& only_down && only_down