diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-13 15:38:13 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-01-13 15:38:13 +0100 |
commit | 71fbc6049b57b2b3f9a1588131ecf8fdb82de279 (patch) | |
tree | 92085f6eb2467dc51e7a0b5e447a3c9ed24db586 /test/serializer.cpp | |
parent | f3672c048d185f952606854137181e85a9cd7034 (diff) |
a
Diffstat (limited to 'test/serializer.cpp')
-rw-r--r-- | test/serializer.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/serializer.cpp b/test/serializer.cpp index 772d81f5..8d5d7ab2 100644 --- a/test/serializer.cpp +++ b/test/serializer.cpp @@ -50,15 +50,9 @@ chunk& test_app::make_test_chunk(world& w, chunk_coords_ ch) { auto& e = *w.make_object<scenery>(w.make_id(), {ch, {K+3, K+1}}, door); fm_assert(e.frame == e.atlas->info().nframes-1); - auto i = e.index(); - e.activate(); + fm_assert(!e.active); + e.activate(e.index()); fm_assert(e.active); - fm_assert(e.frame != 0 && e.frame != e.atlas->info().nframes - 1); - const auto frame0 = e.frame; - e.update(i, 1.f/10); - fm_assert(e.frame != frame0); - for (int i = 0; i < 100; i++) - e.update(i, 1.f/10); } return c; } |