quick fix should fix some broken anm2s

This commit is contained in:
2025-06-29 01:27:59 -04:00
parent 3837c857c2
commit 93ab62e494

View File

@@ -431,14 +431,6 @@ anm2_deserialize(Anm2* self, Resources* resources, const char* path)
case ANM2_ATTRIBUTE_FPS: case ANM2_ATTRIBUTE_FPS:
self->fps = atoi(xmlAttribute->Value()); self->fps = atoi(xmlAttribute->Value());
break; break;
case ANM2_ATTRIBUTE_ID:
break;
case ANM2_ATTRIBUTE_LAYER_ID:
map_swap(animation->layerAnimations, id, atoi(xmlAttribute->Value()));
break;
case ANM2_ATTRIBUTE_NULL_ID:
map_swap(animation->nullAnimations, id, atoi(xmlAttribute->Value()));
break;
case ANM2_ATTRIBUTE_PATH: case ANM2_ATTRIBUTE_PATH:
strncpy(spritesheet->path, xmlAttribute->Value(), PATH_MAX - 1); strncpy(spritesheet->path, xmlAttribute->Value(), PATH_MAX - 1);
break; break;