Fix RequestButton clearing
authorIra W. Snyder <devel@irasnyder.com>
Mon, 8 Oct 2007 07:33:21 +0000 (00:33 -0700)
committerIra W. Snyder <devel@irasnyder.com>
Mon, 8 Oct 2007 07:33:21 +0000 (00:33 -0700)
The RequestButtons for some floors wouldn't clear themselves. Fix that.

Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
elevator.cpp

index b8cdb50..62dfb19 100644 (file)
@@ -193,6 +193,7 @@ void Elevator::transition_open_door ()
        {
                stops_.remove (Stop(position_, direction_));
                gui_unpress_call_button ((int)position_, direction_);
+               gui_unpress_request_button (number_, (int)position_);
        }
 
        // TODO: Call into the GUI to open the door