diff --git a/Crawler/Animation.cpp b/Crawler/Animation.cpp index 2f884b8d..e5e64e10 100644 --- a/Crawler/Animation.cpp +++ b/Crawler/Animation.cpp @@ -208,6 +208,16 @@ void sig::Animation::InitializeAnimations(){ CreateStillAnimation("charged_shot_arrow.png",{48,48}); CreateStillAnimation("laser.png",{5,1}); CreateStillAnimation("range_indicator.png",{24,24}); + + for(auto&dat:GFX){ + std::string imgFile=dat.first; + if(!ANIMATION_DATA.count(imgFile)){ + std::cout<<"WARNING! Animation data for "<Size()); + std::maptest; + test.begin(); + } + } } void sig::Animation::SetupPlayerAnimations(){ diff --git a/Crawler/Version.h b/Crawler/Version.h index 6ecf3f43..22a4c5ec 100644 --- a/Crawler/Version.h +++ b/Crawler/Version.h @@ -2,7 +2,7 @@ #define VERSION_MAJOR 0 #define VERSION_MINOR 2 #define VERSION_PATCH 0 -#define VERSION_BUILD 1318 +#define VERSION_BUILD 1324 #define stringify(a) stringify_(a) #define stringify_(a) #a diff --git a/Crawler/safemap.h b/Crawler/safemap.h index f7ac2ea7..e6c64828 100644 --- a/Crawler/safemap.h +++ b/Crawler/safemap.h @@ -14,6 +14,9 @@ public: } return map[key]; } + size_t count(T key){ + return map.count(key); + } void SetInitialized(){ initialized=true; } @@ -25,4 +28,10 @@ public: initialized=false; map.clear(); } + auto begin()const{ + return map.begin(); + } + auto end()const{ + return map.end(); + } }; \ No newline at end of file