diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-23 05:58:57 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-23 07:42:30 +0100 |
commit | 600a79ba00f58936b1d1d509837262c2895a7c0a (patch) | |
tree | b1cacf9048d0e700dda12522fbc3b62822db7bd4 /src/critter.hpp | |
parent | c69de61bf3873e5de4bb035ee965881a99789142 (diff) |
src/critter: fix stopping auto movement
Diffstat (limited to 'src/critter.hpp')
-rw-r--r-- | src/critter.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/critter.hpp b/src/critter.hpp index 8855813a..e51d37c2 100644 --- a/src/critter.hpp +++ b/src/critter.hpp @@ -42,8 +42,15 @@ struct critter final : object Vector2us offset_frac; // todo! switch to Vector2ui due to `allocate_frame_time' struct movement_s { - bool L : 1, R : 1, U : 1, D : 1, AUTO : 1; - } movement = {}; + bool L : 1 = false, + R : 1 = false, + U : 1 = false, + D : 1 = false, + AUTO : 1 = false; + bool _pad1 : 1 = false, + _pad2 : 1 = false, + _pad3 : 1 = false; + } movement; bool playable : 1 = false; |