22#include "formats/move.h"
33#include "resources/modmanager.h"
44
5- void af_move_create (int file_id , af_move * move , array * sprites , void * src , int id ) {
5+ void af_move_create (str * name , af_move * move , array * sprites , void * src , int id ) {
66 sd_move * sdmv = (sd_move * )src ;
77 str_from_c (& move -> move_string , sdmv -> move_string );
88 str_from_c (& move -> footer_string , sdmv -> footer_string );
@@ -18,8 +18,8 @@ void af_move_create(int file_id, af_move *move, array *sprites, void *src, int i
1818 move -> pos_constraints = sdmv -> pos_constraint ;
1919 move -> throw_duration = sdmv -> throw_duration ;
2020 move -> extra_string_selector = sdmv -> extra_string_selector ;
21- animation_create (AF_ANIMATION , file_id , & move -> ani , sprites , sdmv -> animation , id );
22- modmanager_get_af_move (file_id , id , move );
21+ animation_create (AF_ANIMATION , name , & move -> ani , sprites , sdmv -> animation , id );
22+ modmanager_get_af_move (name , id , move );
2323 if (id == ANIM_JUMPING ) {
2424 // fixup the jump coordinates
2525 animation_fixup_coordinates (& move -> ani , 0 , JUMP_COORD_ADJUSTMENT * -1 );
0 commit comments