[Fixed] A minor inconsistency

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

A minor inconsistency

Post by Graf Zahl »

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.
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Corrected.
Post Reply

Return to “Closed Bugs [GZDoom]”