- Ordenació alfabètica dels actors de cada habitació per als arxius i l'editor

This commit is contained in:
2024-09-17 20:02:25 +02:00
parent 1d255b70e0
commit f1f37d7801
3 changed files with 56 additions and 2 deletions

View File

@@ -572,11 +572,11 @@ namespace room
if (exits[ZP]!=-1) fprintf(f, "exit-zp: %i\n", exits[ZP]);
if (exits[ZN]!=-1) fprintf(f, "exit-zn: %i\n", exits[ZN]);
actor::actor_t *act = actor::getFirst();
actor::actor_t *act = actor::alphaOrder(actor::getFirst());
while (act)
{
if ( (act->flags&(FLAG_HERO|FLAG_NOEDITOR))==0 ) actor::saveToFile(f, act);
act = act->next;
act = act->next_alpha;
}
fclose(f);