From 9df35dd844d6fe04e32a17ff9f858f31c2bae2a8 Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 2 Jun 2017 00:40:59 -0400 Subject: [PATCH] revealInDwarfmodeMap: use map y dimensions --- library/modules/Gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/modules/Gui.cpp b/library/modules/Gui.cpp index 660bc4f69..941f652de 100644 --- a/library/modules/Gui.cpp +++ b/library/modules/Gui.cpp @@ -1548,7 +1548,7 @@ bool Gui::revealInDwarfmodeMap(df::coord pos, bool center) auto dims = getDwarfmodeViewDims(); int w = dims.map_x2 - dims.map_x1 + 1; - int h = dims.y2 - dims.y1 + 1; + int h = dims.map_y2 - dims.map_y1 + 1; *window_z = pos.z;