[Fixed] A minor inconsistency

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

A minor inconsistency

Postby Graf Zahl » Fri Oct 31, 2003 4:17 am

The code makes the following checks to determine whether a monster should be able to open a door:

Code: Select allExpand view
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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Postby randi » Fri Nov 14, 2003 8:02 pm

Corrected.
User avatar
randi
Site Admin
 
Joined: 09 Jul 2003


Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests