The code makes the following checks to determine whether a monster should be able to open a door:
Code: Select all
case SPAC_CROSS:
switch (line->special)
{
case Door_Raise:
if (line->args[1] > 32)
{
break;
}
...
case SPAC_USE:
case SPAC_PUSH:
switch (line->special)
{
case Door_Raise:
if (line->args[0] == 0 && line->args[1] < 64)
noway = false;
break;
...
}
break;
}
For the standard door types this doesn't matter. But shouldn't the 2 values be the same so the behavior of monsters opening doors is consistent no matter how they open it? As it is they can open doors by triggering a walkover when the door's speed is lower or equal to 32, but for switches they can open it as long as it is lower than 64.