aboutsummaryrefslogtreecommitdiffstats
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--map.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/map.c b/map.c
index 16c280c..233c8a0 100644
--- a/map.c
+++ b/map.c
@@ -1,4 +1,4 @@
-/* $Id: map.c,v 1.24 2003/01/10 16:59:32 ukai Exp $ */
+/* $Id: map.c,v 1.25 2003/01/19 09:04:33 ukai Exp $ */
/*
* client-side image maps
*/
@@ -201,7 +201,10 @@ follow_map_menu(Buffer *buf, char *name, Anchor *a_img, int x, int y)
{
MapList *ml;
ListItem *al;
- int i, selected = -1, initial = 0;
+ int i, selected = -1;
+#if defined(USE_IMAGE) || defined(MENU_MAP)
+ int initial = 0;
+#endif
#ifdef MENU_MAP
MapArea *a;
char **label;
@@ -235,7 +238,9 @@ follow_map_menu(Buffer *buf, char *name, Anchor *a_img, int x, int y)
optionMenu(x, y, label, &selected, initial, NULL);
#endif
+#ifdef USE_IMAGE
map_end:
+#endif
if (selected >= 0) {
for (i = 0, al = ml->area->first; al != NULL; i++, al = al->next) {
if (al->ptr && i == selected)