From 23e187c7fd12a8d6c67c4c18aee78cbf75249620 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 23 Dec 2021 12:04:50 -0500 Subject: [PATCH] Fix rendering of ranged weapons --- src/gui.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui.rs b/src/gui.rs index 5c4f8b4..2434ae4 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -514,7 +514,7 @@ pub fn ranged_target( && screen_y > 1 && screen_y < (max_y - min_y) - 1 { - ctx.set_bg(idx.x, idx.y, RGB::named(rltk::BLUE)); + ctx.set_bg(screen_x, screen_y, RGB::named(rltk::BLUE)); available_cells.push(idx); } } diff --git a/src/main.rs b/src/main.rs index d33da51..54f374e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,7 +50,7 @@ macro_rules! register { } } -const SHOW_MAPGEN_VISUALIZER: bool = true; +const SHOW_MAPGEN_VISUALIZER: bool = false; #[derive(PartialEq, Copy, Clone)] pub enum RunState {