BUGFIX: Elevators did not handle Requests in the correct order master
authorIra W. Snyder <iwsnyder@csupomona.edu>
Thu, 18 Oct 2007 15:54:25 +0000 (08:54 -0700)
committerIra W. Snyder <iwsnyder@csupomona.edu>
Thu, 18 Oct 2007 15:54:25 +0000 (08:54 -0700)
Requests from RequestButtons were not handled in the correct order, they
were handled in the order pressed.

Signed-off-by: Ira W. Snyder <iwsnyder@csupomona.edu>
stop.cpp

index 54f0f4f..f81aceb 100644 (file)
--- a/stop.cpp
+++ b/stop.cpp
@@ -12,10 +12,9 @@ bool Stop::operator== (const Stop& rhs) const
        if (rhs.position_ != position_)
                return false;
 
-#if 0
+       /* This is here to keep the order with "ALL" stops correct */
        if (direction_ == ALL || rhs.direction_ == ALL)
                return true;
-#endif
 
        return (rhs.direction_ == direction_);
 }