diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-23 14:04:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-23 14:04:15 +0100 |
commit | 689c4bf27316c6271bb922d4f64436121cfe72bc (patch) | |
tree | 8286a6fa463c07d8a40e51a0e882a08ed4d24b28 /serialize/old-savegame.cpp | |
parent | 17f15d8b6137ba33a3cf275ba1bc7067c0f95dde (diff) |
w
Diffstat (limited to 'serialize/old-savegame.cpp')
-rw-r--r-- | serialize/old-savegame.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/serialize/old-savegame.cpp b/serialize/old-savegame.cpp index 8159419b..111d29f3 100644 --- a/serialize/old-savegame.cpp +++ b/serialize/old-savegame.cpp @@ -431,7 +431,7 @@ void reader_state::read_chunks(reader_t& s) } SET_CHUNK_SIZE(); auto e = _world->make_object<critter, false>(oid, {ch, local}, proto); - e->offset_frac = offset_frac; + e->offset_frac_ = (uint16_t)((Vector2(offset_frac)*(1.f/65355)).length()*32768); (void)e; break; } |