diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-21 12:01:48 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-21 12:28:53 +0100 |
| commit | 9b063b749faedd17fd8f6d76a25d84f066a92814 (patch) | |
| tree | 4bf4b7106ade3cd762281204bc1e72344bc12739 /draw | |
| parent | 3ed15b56aded3a6f58ef98d0cbe17012e28e9430 (diff) | |
scenery work
Diffstat (limited to 'draw')
| -rw-r--r-- | draw/anim.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp index aa5ee1f6..d2f644a9 100644 --- a/draw/anim.cpp +++ b/draw/anim.cpp @@ -28,18 +28,7 @@ void anim_mesh::draw(tile_shader& shader, chunk& c) { const local_coords pos{i}; if (auto [atlas, s] = c[pos].scenery(); atlas) - { draw(shader, *atlas, s.r, s.frame, pos); -#if 1 - // todo debugging - static std::size_t N = 0; - N++; - auto nframes = atlas->info().nframes; - if (N > nframes*3) - N = 0; - s.frame = (scenery::frame_t)std::min(N, nframes-1); -#endif - } } } |
