summaryrefslogtreecommitdiffhomepage
path: root/src/entity.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-16 08:30:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-17 23:23:11 +0100
commitfd9298ef43136fa89dab034096690a08027ebf44 (patch)
tree312aefb9cddd02511ec09bbce9aa2bf495a42e8c /src/entity.hpp
parentea37d1030186f76b88f189f6ea0cc2b2d57a985a (diff)
a
Diffstat (limited to 'src/entity.hpp')
-rw-r--r--src/entity.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/entity.hpp b/src/entity.hpp
index 6bfad752..a0a6ed53 100644
--- a/src/entity.hpp
+++ b/src/entity.hpp
@@ -24,7 +24,7 @@ struct entity_proto
rotation r : rotation_BITS = rotation::N;
pass_mode pass : pass_mode_BITS = pass_mode::see_through;
- std::uint32_t ordinal(local_coords coord) const;
+ std::int32_t ordinal(local_coords coord) const;
entity_proto& operator=(const entity_proto&);
entity_proto();
entity_proto(const entity_proto&);
@@ -51,8 +51,8 @@ struct entity
virtual ~entity() noexcept;
- std::uint32_t ordinal() const;
- static std::uint32_t ordinal(local_coords xy, Vector2b offset);
+ std::int32_t ordinal() const;
+ static std::int32_t ordinal(local_coords xy, Vector2b offset);
struct chunk& chunk() const;
It iter() const;