resolve #315
This commit is contained in:
parent
86f343b84b
commit
abf0c5e632
17
src/p_spec.c
17
src/p_spec.c
|
@ -4439,8 +4439,17 @@ void P_ProcessSpecialSector(player_t *player, sector_t *sector, sector_t *rovers
|
||||||
case 3: // Linedef executor requires all players present
|
case 3: // Linedef executor requires all players present
|
||||||
/// \todo check continues for proper splitscreen support?
|
/// \todo check continues for proper splitscreen support?
|
||||||
for (i = 0; i < MAXPLAYERS; i++)
|
for (i = 0; i < MAXPLAYERS; i++)
|
||||||
if (playeringame[i] && !players[i].bot && players[i].mo && (gametype != GT_COOP || players[i].lives > 0))
|
|
||||||
{
|
{
|
||||||
|
if (!playeringame[i])
|
||||||
|
continue;
|
||||||
|
if (!players[i].mo)
|
||||||
|
continue;
|
||||||
|
if (players[i].spectator)
|
||||||
|
continue;
|
||||||
|
if (players[i].bot)
|
||||||
|
continue;
|
||||||
|
if (gametype == GT_COOP && players[i].lives <= 0)
|
||||||
|
continue;
|
||||||
if (roversector)
|
if (roversector)
|
||||||
{
|
{
|
||||||
if (sector->flags & SF_TRIGGERSPECIAL_TOUCH)
|
if (sector->flags & SF_TRIGGERSPECIAL_TOUCH)
|
||||||
|
@ -4463,17 +4472,13 @@ void P_ProcessSpecialSector(player_t *player, sector_t *sector, sector_t *rovers
|
||||||
;
|
;
|
||||||
else if (sector->flags & SF_TRIGGERSPECIAL_TOUCH)
|
else if (sector->flags & SF_TRIGGERSPECIAL_TOUCH)
|
||||||
{
|
{
|
||||||
boolean insector = false;
|
|
||||||
msecnode_t *node;
|
msecnode_t *node;
|
||||||
for (node = players[i].mo->touching_sectorlist; node; node = node->m_sectorlist_next)
|
for (node = players[i].mo->touching_sectorlist; node; node = node->m_sectorlist_next)
|
||||||
{
|
{
|
||||||
if (node->m_sector == sector)
|
if (node->m_sector == sector)
|
||||||
{
|
|
||||||
insector = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
if (!node)
|
||||||
if (!insector)
|
|
||||||
goto DoneSection2;
|
goto DoneSection2;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue