diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-05 11:12:33 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-05 12:42:49 +0200 |
| commit | 77252b17c70cc986159360bf8a1913c816b53f80 (patch) | |
| tree | a5f2a18b91d27d891ef645904f96d12bff7fb538 /serialize/world-reader.cpp | |
| parent | 1e7acf4ec72647a48adad961ae41a7446418b908 (diff) | |
src/critter: clean up before implementing pathfinding
Diffstat (limited to 'serialize/world-reader.cpp')
| -rw-r--r-- | serialize/world-reader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/serialize/world-reader.cpp b/serialize/world-reader.cpp index 53b675ea..b912b5d7 100644 --- a/serialize/world-reader.cpp +++ b/serialize/world-reader.cpp @@ -268,9 +268,11 @@ void reader_state::read_chunks(reader_t& s) proto.frame = s.read<uint8_t>(); else proto.frame << s; - Vector2s offset_frac; + Vector2us offset_frac; offset_frac[0] << s; offset_frac[1] << s; + if (PROTO < 17) [[unlikely]] + offset_frac = {}; const bool exact = id & meta_short_scenery_bit; SET_CHUNK_SIZE(); |
