From 87d181aeaffe81e83f2f08430cb78998b231770b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Jul 2009 21:08:28 +0100 Subject: [PATCH] do not attempt to parse the shoppe tab --- pctb/structure.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pctb/structure.c b/pctb/structure.c index 200b86e..8887c8a 100644 --- a/pctb/structure.c +++ b/pctb/structure.c @@ -671,7 +671,7 @@ void find_islandname(RgbImage *ri) { } identify_rgbimage(ri, islandnamer, archisland, "island"); - } else { + } else if (!strcmp(sunshine,"Land - Ahoy")) { Rect islandnamer; islandnamer.tl.x= (sunshiner.tl.x + sunshiner.br.x) / 2; @@ -757,6 +757,10 @@ void find_islandname(RgbImage *ri) { islandnamer.br.x= p.x; identify_rgbimage(ri, islandnamer, archisland, "island"); + } else { + + MUST(!"sunshine shows ship or ahoy", MS(sunshine) ); + } char *delim= strstr(archisland," - "); -- 2.30.2