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.
This commit is contained in:
Dan Danese 2024-06-18 14:56:13 -04:00 committed by GitHub
parent cde4b84be1
commit ac711ffff8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -257,6 +257,9 @@ void discrete_load(FILE * fl)
fprintf(stderr, "Format error after room #%d\n", nr); fprintf(stderr, "Format error after room #%d\n", nr);
exit(1); exit(1);
} }
if (*line == 'T') //Toss triggers. THey currently break this util.
return;
if (*line == '$') if (*line == '$')
return; return;