Simplify redundant ehostage.cpp conditional
This commit is contained in:
parent
c16b7763e9
commit
c8f51c7184
|
@ -345,16 +345,10 @@ static window_event_result hostage_dialog_handler(UI_DIALOG *dlg,const d_event &
|
|||
Temp = timer_query();
|
||||
h->time = Temp;
|
||||
|
||||
if (CurrentHostageIndex > -1 ) {
|
||||
gr_set_current_canvas( h->hostageViewBox->canvas );
|
||||
|
||||
gr_clear_canvas(*grd_curcanv, CGREY);
|
||||
} else {
|
||||
// no hostage, so just blank out
|
||||
gr_set_current_canvas( h->hostageViewBox->canvas );
|
||||
gr_clear_canvas(*grd_curcanv, CGREY);
|
||||
}
|
||||
}
|
||||
|
||||
//------------------------------------------------------------
|
||||
// If anything changes in the ui system, redraw all the text that
|
||||
|
|
Loading…
Reference in a new issue