src/game/Tactical/Keys.cc
void AddDoorInfoToTable( DOOR *pDoor )
{
	FOR_EACH_DOOR(d)
	{
		if (d.sGridNo != pDoor->sGridNo) continue;
		d = *pDoor;
		return;
	}

	//no existing door found, so add a new one.
	DoorTable.push_back(*pDoor);
}
//The editor adds locks to the world.  If the gridno already exists, then the currently existing door
//information is overwritten.
The editor adds locks to the world.  If the gridno already exists, then the currently existing door
information is overwritten.
The editor adds locks to the world . If the gridno already exists then the currently existing door information is overwritten .
void AddDoorInfoToTable( DOOR *pDoor )
{
	FOR_EACH_DOOR(d)
	{
		if (d.sGridNo != pDoor->sGridNo) continue;
		d = *pDoor;
		return;
	}
	DoorTable.push_back(*pDoor);
}
void AddDoorInfoToTable ( DOOR * pDoor ) { FOR_EACH_DOOR ( d ) { if ( d . sGridNo != pDoor -> sGridNo ) continue ; d = * pDoor ; return ; } DoorTable . push_back ( * pDoor ) ; }
The editor adds locks to the world.
The editor adds locks to the world .
//no existing door found, so add a new one.