summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/camera-offset.cpp2
-rw-r--r--src/entity.cpp6
2 files changed, 0 insertions, 8 deletions
diff --git a/src/camera-offset.cpp b/src/camera-offset.cpp
index 060e1559..84dc6141 100644
--- a/src/camera-offset.cpp
+++ b/src/camera-offset.cpp
@@ -4,8 +4,6 @@
namespace floormat {
-static_assert(sizeof(short) == 2);
-
with_shifted_camera_offset::with_shifted_camera_offset(tile_shader& shader, chunk_coords c, chunk_coords first, chunk_coords last) :
_shader{shader},
_camera{shader.camera_offset()}
diff --git a/src/entity.cpp b/src/entity.cpp
index 586f9ecc..c0b89195 100644
--- a/src/entity.cpp
+++ b/src/entity.cpp
@@ -41,7 +41,6 @@ entity::~entity() noexcept
Vector2b entity::ordinal_offset_for_type(entity_type type, Vector2b offset)
{
-#if 0
switch (type)
{
default:
@@ -52,11 +51,6 @@ Vector2b entity::ordinal_offset_for_type(entity_type type, Vector2b offset)
case entity_type::character:
return {};
}
-#else
- (void)type;
- (void)offset;
- return {};
-#endif
}
float entity_proto::ordinal(local_coords local) const