diff options
Diffstat (limited to 'serialize/world-writer.cpp')
-rw-r--r-- | serialize/world-writer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/world-writer.cpp b/serialize/world-writer.cpp index 2e1c7daa..fd533cee 100644 --- a/serialize/world-writer.cpp +++ b/serialize/world-writer.cpp @@ -417,8 +417,8 @@ void writer_state::serialize_scenery(const chunk& c, writer_t& s) fm_assert(L.falloff < light_falloff_COUNT); uint8_t flags = 0; flags |= (uint8_t)exact; // 1 bit - flags |= ((uint8_t)L.r & lowbits<rotation_BITS>) << 1; // 3 bits - flags |= ((uint8_t)L.falloff & lowbits<light_falloff_BITS>) << 4; // 2 bits + flags |= ((uint8_t)L.r & lowbits<rotation_BITS>) << 1; // 3 input_bits + flags |= ((uint8_t)L.falloff & lowbits<light_falloff_BITS>) << 4; // 2 input_bits flags |= (uint8_t)!!L.enabled << 7; // 1 bit s << flags; } |