From: Ira W. Snyder Date: Mon, 8 Oct 2007 07:33:21 +0000 (-0700) Subject: Fix RequestButton clearing X-Git-Url: https://irasnyder.com/gitweb/?a=commitdiff_plain;h=3c8c1f8575d2379a73942f8d6c10edd0c366bcd4;p=cs356-p1-elevator.git Fix RequestButton clearing The RequestButtons for some floors wouldn't clear themselves. Fix that. Signed-off-by: Ira W. Snyder --- diff --git a/elevator.cpp b/elevator.cpp index b8cdb50..62dfb19 100644 --- a/elevator.cpp +++ b/elevator.cpp @@ -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