Browse Source

fix light stealing (#2992)

pull/2994/head
qndel 5 years ago committed by GitHub
parent
commit
873e426952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      Source/msg.cpp
  2. 2
      Source/player.cpp

1
Source/msg.cpp

@ -1546,7 +1546,6 @@ DWORD OnPlayerJoinLevel(TCmd *pCmd, int pnum)
}
player._pvid = AddVision(player.position.tile, player._pLightRad, pnum == MyPlayerId);
player._plid = NO_LIGHT;
}
}

2
Source/player.cpp

@ -3631,6 +3631,8 @@ void SyncInitPlr(int pnum)
SetPlrAnims(player);
SyncInitPlrPos(pnum);
if (pnum != MyPlayerId)
player._plid = NO_LIGHT;
}
void CheckStats(Player &player)

Loading…
Cancel
Save