mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Improve emblem sharing conditions
This commit is contained in:
parent
29f55471dd
commit
c1e641be43
1 changed files with 3 additions and 2 deletions
|
@ -796,6 +796,7 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
{
|
||||
mobj_t *spark = NULL;
|
||||
boolean prevCollected;
|
||||
const boolean isServer = ((player - players) == serverplayer);
|
||||
|
||||
if (!P_CanPickupEmblem(player, special->health - 1))
|
||||
{
|
||||
|
@ -804,13 +805,13 @@ void P_TouchSpecialThing(mobj_t *special, mobj_t *toucher, boolean heightcheck)
|
|||
|
||||
prevCollected = P_EmblemWasCollected(special->health - 1);
|
||||
|
||||
if (((player - players) == serverplayer) || shareEmblems)
|
||||
if (isServer || shareEmblems)
|
||||
{
|
||||
serverGamedata->collected[special->health-1] = true;
|
||||
M_SilentUpdateUnlockablesAndEmblems(serverGamedata);
|
||||
}
|
||||
|
||||
if (P_IsLocalPlayer(player) /*|| shareEmblems*/)
|
||||
if (P_IsLocalPlayer(player) || (isServer && shareEmblems))
|
||||
{
|
||||
clientGamedata->collected[special->health-1] = true;
|
||||
M_UpdateUnlockablesAndExtraEmblems(clientGamedata);
|
||||
|
|
Loading…
Reference in a new issue