diff options
Diffstat (limited to 'test')
-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; } |