From 16a515766862eb69dab70e081170da7ce39602a8 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 6 Mar 2021 21:41:40 -0500 Subject: The mirror reflection changes to Claus, Ionia, and Wess --- src/animation_system.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/animation_system.cpp b/src/animation_system.cpp index 997b53a..ce5cc02 100644 --- a/src/animation_system.cpp +++ b/src/animation_system.cpp @@ -43,6 +43,7 @@ void AnimationSystem::initSprite(int spriteId, std::string_view filename) { std::getline(framefile, line); // frames std::getline(framefile, line); // blank + sprite.frames.clear(); for (int i=0; i> f.size.w(); @@ -64,6 +65,8 @@ void AnimationSystem::initSprite(int spriteId, std::string_view filename) { std::string animLine; std::getline(datafile, animLine); // blank + sprite.animations.clear(); + sprite.nameDirToAnim.clear(); while (std::getline(datafile, animLine)) { std::regex re(R"(([a-z!._]+)\[([a-z_]+)\](%[0-9]+)?: ([0-9,#]+))"); std::smatch m; -- cgit 1.4.1