Simplify redundant ehostage.cpp conditional
This commit is contained in:
parent
c16b7763e9
commit
c8f51c7184
|
@ -345,15 +345,9 @@ static window_event_result hostage_dialog_handler(UI_DIALOG *dlg,const d_event &
|
||||||
Temp = timer_query();
|
Temp = timer_query();
|
||||||
h->time = Temp;
|
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
|
// no hostage, so just blank out
|
||||||
gr_set_current_canvas( h->hostageViewBox->canvas );
|
gr_set_current_canvas( h->hostageViewBox->canvas );
|
||||||
gr_clear_canvas(*grd_curcanv, CGREY);
|
gr_clear_canvas(*grd_curcanv, CGREY);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------
|
//------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue