summaryrefslogtreecommitdiff
path: root/src/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index e3fc6d2..babb118 100644
--- a/src/map.c
+++ b/src/map.c
@@ -12,6 +12,13 @@ map_next(void)
map_id += 1;
}
+void
+map_previous(void)
+{
+ if (map_id > 0)
+ map_id -= 1;
+}
+
int
map_width(void)
{