summaryrefslogtreecommitdiffhomepage
path: root/src/object.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-03-06 16:04:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-03-06 17:31:11 +0100
commit270a1ddbb91995c501fcd407045bf1fc4324ea15 (patch)
treeb0b92354bdf67a01b22e59ccdb1fedd6637006a1 /src/object.hpp
parent2d57d7a8baf9ef6912dba92b518ec2b9c040f26d (diff)
src/object: switch delta to 32-bit
Diffstat (limited to 'src/object.hpp')
-rw-r--r--src/object.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/object.hpp b/src/object.hpp
index b77b0f42..4ada39d4 100644
--- a/src/object.hpp
+++ b/src/object.hpp
@@ -21,7 +21,8 @@ struct object_proto
std::shared_ptr<anim_atlas> atlas;
Vector2b offset, bbox_offset;
Vector2ub bbox_size = Vector2ub(tile_size_xy);
- uint16_t delta = 0, frame = 0;
+ uint32_t delta = 0;
+ uint16_t frame = 0;
object_type type : 3 = object_type::none;
rotation r : rotation_BITS = rotation::N;
pass_mode pass : pass_mode_BITS = pass_mode::see_through; // todo move to struct scenery, add inherit bit
@@ -47,7 +48,7 @@ struct object
const global_coords coord;
const Vector2b offset, bbox_offset;
const Vector2ub bbox_size;
- uint16_t delta = 0; // todo! switch to Vector2ui due to `allocate_frame_time'
+ uint32_t delta = 0;
uint16_t frame = 0;
const rotation r = rotation::N; // todo remove bitfield?
const pass_mode pass = pass_mode::see_through;