diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-15 07:24:08 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-15 07:24:08 +0100 |
| commit | 152f9ef5feff7ea41c647e004f6e98082abf4b1c (patch) | |
| tree | 59c2cabb1291aa8d938d2768b8183f14e8b6d8ad /serialize/world-writer.cpp | |
| parent | 8c7d8405b7c88d0553ee505061ade27127410431 (diff) | |
w
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; } |
