projects
/
cs356-p1-elevator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f95be71
)
BUGFIX: Elevators did not handle Requests in the correct order
master
author
Ira W. Snyder
<iwsnyder@csupomona.edu>
Thu, 18 Oct 2007 15:54:25 +0000
(08:54 -0700)
committer
Ira 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
patch
|
blob
|
history
diff --git
a/stop.cpp
b/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_);
}