summaryrefslogtreecommitdiffhomepage
path: root/serialize
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-24 16:51:16 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-24 16:51:16 +0100
commitc06ad69869c4a30a16a14f73632379075dc0614d (patch)
treeddce5d3319bd2a2a42abceb93a846c0f6096eeb8 /serialize
parentacf2b9e79ae392c200c9b22b56159911153cd54c (diff)
serialize/save: fix delta after change to fixed point
Diffstat (limited to 'serialize')
-rw-r--r--serialize/world-writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/world-writer.cpp b/serialize/world-writer.cpp
index c44d73f4..2860a118 100644
--- a/serialize/world-writer.cpp
+++ b/serialize/world-writer.cpp
@@ -114,7 +114,7 @@ void writer_state::load_scenery_1(const serialized_scenery& s)
scenery_map[ptr] = { { &s, null_atlas } };
else
{
- fm_assert(s.proto.frame.delta == 0.f);
+ fm_assert(s.proto.frame.delta == 0);
auto& vec = scenery_map[ptr];
for (const auto& x : vec)
if (s.proto.frame == x.s->proto.frame)
@@ -354,7 +354,7 @@ void writer_state::serialize_chunk(const chunk& c, chunk_coords coord)
s << id;
if (!sc_exact || !scenery.offset.isZero())
{
- fm_assert(scenery.active || scenery.delta == 0.0f);
+ fm_assert(scenery.active || scenery.delta == 0);
write_scenery_flags(s, scenery);
if (scenery.frame <= 0xff)
s << (std::uint8_t)scenery.frame;