support for new SEQ format and idle animations

This commit is contained in:
Ondřej Novák 2025-07-10 15:07:54 +02:00
parent 3463d8e720
commit 2ce5f77825
9 changed files with 284 additions and 93 deletions

View file

@ -453,8 +453,10 @@ int load_map_state_ex(const char *level_fname, int mapsize, char partial)
{
for(i=0;i<MAX_MOBS;(mobs[i].vlajky &=~MOB_LIVE),i++);
while (temp_storage_read(&i,sizeof(i),fsta) && i>=0 && i<=MAX_MOBS) {
int h = mobs[i].cislo_vzoru;
if (temp_storage_read(mobs+i,1*sizeof(TMOB),fsta)!=sizeof(TMOB)) goto err;
mobs[i].vlajky2 = 0;
mobs[i].cislo_vzoru = h;
}
}