support adv files

This commit is contained in:
Ondřej Novák 2025-03-23 19:00:20 +01:00
parent 7aaeccd1c3
commit 8cf3c928e9
6 changed files with 63 additions and 33 deletions

View file

@ -238,7 +238,7 @@ int load_map(const char *filename)
char nmapend=1;
int ofsts=START_HANDLE;
char snd_load=0;
void *mob_template;
const void *mob_template;
int32_t mob_size;
int failed = 0;
@ -344,7 +344,7 @@ int load_map(const char *filename)
else
{
load_enemies(temp,size,&ofsts,mob_template,mob_size);
free(mob_template);
ablock_free(mob_template);
SEND_LOG("(GAME) Loading enemies from map template...");
}
free(temp);
@ -358,7 +358,7 @@ int load_map(const char *filename)
vyk_max=size/sizeof(TVYKLENEK);
break;
case A_MOBS:
mob_template=temp;
mob_template=load_mob_legacy_format_direct(temp, &size);
mob_size=size;
break;
case A_MOBSND: