mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-21 20:11:12 +00:00
Fix lag when touching collected emblems
This commit is contained in:
parent
987d2ee59a
commit
2503e6c350
1 changed files with 2 additions and 1 deletions
|
@ -836,6 +836,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
||||||
{
|
{
|
||||||
clientGamedata->collected[special->health-1] = true;
|
clientGamedata->collected[special->health-1] = true;
|
||||||
M_UpdateUnlockablesAndExtraEmblems(clientGamedata);
|
M_UpdateUnlockablesAndExtraEmblems(clientGamedata);
|
||||||
|
if (!prevCollected) // don't thrash the disk and wreak performance.
|
||||||
G_SaveGameData(clientGamedata);
|
G_SaveGameData(clientGamedata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue