From c8f51c71842febdd0a7d131810f09159203185ed Mon Sep 17 00:00:00 2001 From: Kp Date: Wed, 8 Feb 2017 23:34:41 +0000 Subject: [PATCH] Simplify redundant ehostage.cpp conditional --- d1x-rebirth/editor/ehostage.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/d1x-rebirth/editor/ehostage.cpp b/d1x-rebirth/editor/ehostage.cpp index 187a43093..44e09eba7 100644 --- a/d1x-rebirth/editor/ehostage.cpp +++ b/d1x-rebirth/editor/ehostage.cpp @@ -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); - } } //------------------------------------------------------------