From 7296afe57a7ea99996e083e646395f4f4be95648 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Tue, 10 Nov 2009 13:35:52 +0100 Subject: Remove inside_level_bounds. This was a weird mix of in_bounds and map_bounds (exclusive top-left, inclusive top-right). Replaced with in_bounds. --- crawl-ref/source/travel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/travel.cc') diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc index c0ab8904de..7e0293d58b 100644 --- a/crawl-ref/source/travel.cc +++ b/crawl-ref/source/travel.cc @@ -250,7 +250,7 @@ static void _init_traps() int x = env.trap[i].pos.x, y = env.trap[i].pos.y; - if (inside_level_bounds(x,y)) + if (in_bounds(x,y)) curr_traps[x][y] = i; } traps_inited = true; -- cgit v1.2.3-54-g00ecf