From a132188ccc244a6d802bd1c32fbf196d4cb53cbd Mon Sep 17 00:00:00 2001 From: nsensfel Date: Thu, 12 Jul 2018 17:48:41 +0200 Subject: Got it to load the map (full of "error" tiles). --- src/map/struct/map_location.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/struct/map_location.erl') diff --git a/src/map/struct/map_location.erl b/src/map/struct/map_location.erl index 9670cb0..edfb85a 100644 --- a/src/map/struct/map_location.erl +++ b/src/map/struct/map_location.erl @@ -1,4 +1,4 @@ --module(btl_location). +-module(map_location). %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% TYPES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -44,7 +44,7 @@ validate ({X, Y}) -> -spec get_nowhere () -> type(). get_nowhere () -> nowhere. --spec apply_direction (btl_direction:enum(), type()) -> type(). +-spec apply_direction (map_direction:enum(), type()) -> type(). apply_direction (left, {X, Y}) -> validate({(X - 1), Y}); apply_direction (right, {X, Y}) -> -- cgit v1.2.3-70-g09d2