Fix lag when touching collected emblems

This commit is contained in:
Gustaf Alhäll 2024-11-04 21:55:42 +01:00
parent 987d2ee59a
commit 2503e6c350

View file

@ -836,7 +836,8 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
{
clientGamedata->collected[special->health-1] = true;
M_UpdateUnlockablesAndExtraEmblems(clientGamedata);
G_SaveGameData(clientGamedata);
if (!prevCollected) // don't thrash the disk and wreak performance.
G_SaveGameData(clientGamedata);
}
if (netgame)