diff options
Diffstat (limited to 'test/save.cpp')
-rw-r--r-- | test/save.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/save.cpp b/test/save.cpp index b2f10794..e5dcf9a6 100644 --- a/test/save.cpp +++ b/test/save.cpp @@ -181,11 +181,11 @@ void test_save_objs() { const auto tmp = Path::join(loader.TEMP_PATH, "test/test-save-objs.dat"_s); - // todo! test non-zero offset_frac // todo! test all object and scenery types! - auto w = world(); { // --- counter --- + auto w = world(); + const auto ctr = w.object_counter(); const auto ctrʹ = ctr + 364; fm_assert(ctrʹ > ctr); @@ -201,6 +201,7 @@ void test_save_objs() } { // --- critter --- + auto w = world(); critter_proto p; p.atlas = loader.anim_atlas("npc-walk", loader.ANIM_PATH); p.offset = Vector2b{-1, 2}; |