From f69008bc8382f63a45be69794bc06f780bcf50a8 Mon Sep 17 00:00:00 2001 From: KA101 Date: Wed, 19 Nov 2014 23:47:31 -0500 Subject: [PATCH] Fix, 2d --- src/ranged.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ranged.cpp b/src/ranged.cpp index aaac14de18076..fe8b8a8e1372b 100644 --- a/src/ranged.cpp +++ b/src/ranged.cpp @@ -947,7 +947,7 @@ std::vector game::target(int &x, int &y, int lowx, int lowy, int hix, int height = 17; int width = getmaxx(w_messages); // Overlap the player info window. - int top = -1 + sideStyle ? getbegy(w_messages) : (getbegy(w_minimap) + getmaxy(w_minimap)); + int top = -1 + (sideStyle ? getbegy(w_messages) : (getbegy(w_minimap) + getmaxy(w_minimap)) ); int left = getbegx(w_messages); WINDOW *w_target = newwin(height, width, top, left); WINDOW_PTR w_targetptr( w_target );