From b663151efe804bc2ba14af711d24c7ebc5e2550d Mon Sep 17 00:00:00 2001
From: Rangi <remy.oukaour+rangi42@gmail.com>
Date: Thu, 23 Jan 2020 18:08:56 -0500
Subject: [PATCH] Fix build warning from gcc

---
 src/map.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/map.cpp b/src/map.cpp
index 0e2d34b..a8da898 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -29,7 +29,7 @@ void Map::block(uint8_t x, uint8_t y, Block *b) {
 
 Block *Map::block_under(Event *e) {
 	if (!e) { return NULL; }
-	uint16_t bx = e->event_x() / 2, by = e->event_y() / 2;
+	int16_t bx = e->event_x() / 2, by = e->event_y() / 2;
 	return bx >= 0 && by >= 0 && bx < _width && by < _height ? block((uint8_t)bx, (uint8_t)by) : NULL;
 }