mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
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:
parent
acf8384d11
commit
cae791ffa4
1 changed files with 16 additions and 12 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue