From 7fd4ccb004c7f8389825b92405685617770b01ac Mon Sep 17 00:00:00 2001 From: Kp Date: Sun, 19 Apr 2015 04:18:49 +0000 Subject: [PATCH] Simplify info_display_object_placement cache override --- similar/editor/info.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/similar/editor/info.cpp b/similar/editor/info.cpp index b45a348ba..3c4ac38f8 100644 --- a/similar/editor/info.cpp +++ b/similar/editor/info.cpp @@ -147,15 +147,8 @@ static void info_display_object_placement(int show_all) static int old_movement_type; static int old_control_type; static int old_mode; - if (init_info | show_all) { - old_Cur_object_index = -2; - old_type = -2; - old_movement_type = -2; - old_control_type = -2; - old_mode = -2; - } - - if ( ( Cur_object_index != old_Cur_object_index) || + if (init_info || show_all || + ( Cur_object_index != old_Cur_object_index) || ( Objects[Cur_object_index].type != old_type) || ( Objects[Cur_object_index].movement_type != old_movement_type) || ( Objects[Cur_object_index].control_type != old_control_type) ||