diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-27 21:30:00 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-27 21:30:00 +0100 |
commit | 722b07a415f82a7fe56f595497ddf2ec0816f27c (patch) | |
tree | 42df92ff7f6d0a670644991cfff34ee3627a8c40 /serialize | |
parent | 5becc80e3c3eb04f2067cb000e32eef45441e5f3 (diff) |
actually speed should be the property of critter
Diffstat (limited to 'serialize')
-rw-r--r-- | serialize/savegame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serialize/savegame.cpp b/serialize/savegame.cpp index ba126746..d84ce143 100644 --- a/serialize/savegame.cpp +++ b/serialize/savegame.cpp @@ -173,8 +173,6 @@ struct visitor_ do_visit(pt, f); non_const(obj.coord) = {ch, pt}; } - if (PROTO >= 22) [[likely]] - do_visit(obj.speed, f); do_visit_nonconst(obj.offset, f); do_visit_nonconst(obj.bbox_offset, f); do_visit_nonconst(obj.bbox_size, f); @@ -218,6 +216,8 @@ struct visitor_ void visit(critter& obj, F&& f) { do_visit(obj.name, f); + if (PROTO >= 22) [[likely]] + do_visit(obj.speed, f); do_visit(obj.offset_frac, f); constexpr struct { |