Fix issue where the player's pistol isn't removed when they spawn on HURTRAIL/FLOORSLIME/FLOORPLASMA

git-svn-id: https://svn.eduke32.com/eduke32@7292 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-12-15 21:34:57 +00:00
parent acf8384d11
commit cae791ffa4

View file

@ -1639,7 +1639,10 @@ static void G_ResetAllPlayers(void)
for (int TRAVERSE_CONNECT(i))
{
auto &p = *g_player[i].ps;
switch (DYNAMICTILEMAP(sector[sprite[p.i].sectnum].floorpicnum))
if (p.cursectnum >= 0)
{
switch (DYNAMICTILEMAP(sector[p.cursectnum].floorpicnum))
{
case HURTRAIL__STATIC:
case FLOORSLIME__STATIC:
@ -1656,6 +1659,7 @@ static void G_ResetAllPlayers(void)
}
}
}
}
void G_ResetTimers(bool saveMoveCnt)
{