Ok, I think I get what you mean now, but I don't see how it is the opposite. If rot[2] is 0, the door is closed. Otherwise it is opened.This is handled the same in both activateDoor and getNearbyDoor:

            if (door.getRefData().getLocalRotation().rot[2] == 0)
                mDoorStates[door] = 1; // open

The "open" comment refers to the door being closed, so by being activated it should now start opening (maybe that comment is a bit confusing)