Simplify redundant ehostage.cpp conditional

This commit is contained in:
Kp 2017-02-08 23:34:41 +00:00
parent c16b7763e9
commit c8f51c7184

View file

@ -345,15 +345,9 @@ 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);
}
}
//------------------------------------------------------------