From ac711ffff8b768e102bf4cb015457cdb47f2706f Mon Sep 17 00:00:00 2001 From: Dan Danese Date: Tue, 18 Jun 2024 14:56:13 -0400 Subject: [PATCH] Update wld2html.c (#131) Triggers on elements of the room break this utility. Added code to toss them since we don't need them. Can add handling that pulls the trigger info later if desired, but too time consuming to index them before building the room for this simple tool. --- src/util/wld2html.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/wld2html.c b/src/util/wld2html.c index 9afc9c8..ac3c111 100755 --- a/src/util/wld2html.c +++ b/src/util/wld2html.c @@ -257,6 +257,9 @@ void discrete_load(FILE * fl) fprintf(stderr, "Format error after room #%d\n", nr); exit(1); } + if (*line == 'T') //Toss triggers. THey currently break this util. + return; + if (*line == '$') return;