relocate customization application

Resolves #1450
This commit is contained in:
nhmall
2025-10-06 11:49:31 -04:00
parent 9f6d1d17dd
commit 38161f3e4a
4 changed files with 14 additions and 3 deletions

View File

@@ -178,6 +178,8 @@ moveloop_core(void)
#ifdef POSITIONBAR
do_positionbar();
#endif
if (iflags.pending_customizations)
maybe_shuffle_customizations();
dobjsfree();

View File

@@ -568,15 +568,22 @@ apply_customizations(
}
}
}
if (at_least_one) {
shuffle_customizations();
}
iflags.pending_customizations = at_least_one;
}
/* Shuffle the customizations to match shuffled object descriptions,
* so a red potion isn't displayed with a blue customization, and so on.
*/
void
maybe_shuffle_customizations(void)
{
if (iflags.pending_customizations) {
shuffle_customizations();
iflags.pending_customizations = 0;
}
}
#if 0
staticfn void
shuffle_customizations(void)