From: Ira W. Snyder Date: Thu, 18 Oct 2007 15:54:25 +0000 (-0700) Subject: BUGFIX: Elevators did not handle Requests in the correct order X-Git-Url: https://irasnyder.com/gitweb/?a=commitdiff_plain;h=7923fcc71020d897573ce2c67b35e8475cb16056;p=cs356-p1-elevator.git BUGFIX: Elevators did not handle Requests in the correct order Requests from RequestButtons were not handled in the correct order, they were handled in the order pressed. Signed-off-by: Ira W. Snyder --- diff --git a/stop.cpp b/stop.cpp index 54f0f4f..f81aceb 100644 --- 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_); }