From d9f4084d50057f1103cbdae03dea3b4abddaa209 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 29 Mar 2014 23:58:08 -0300 Subject: Minor script_add_str error/debug addition intif_parse_Registers now flags/unflags parser_current_file so that any possible naming issues with the variables being loaded are referenced here (previously they'd be reported anyway but without mentioning where it came from Signed-off-by: shennetsind --- src/map/intif.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map') diff --git a/src/map/intif.c b/src/map/intif.c index af1a1da6e..40ceda917 100644 --- a/src/map/intif.c +++ b/src/map/intif.c @@ -1023,6 +1023,8 @@ void intif_parse_Registers(int fd) unsigned int index; int max = RFIFOW(fd, 14), cursor = 16, ival; + script->parser_current_file = "loading char/acc variables";//for script_add_str to refer to here in case errors occur + /** * Vessel!char_reg_num_db * @@ -1062,6 +1064,8 @@ void intif_parse_Registers(int fd) script->set_reg(NULL,sd,reference_uid(script->add_str(key), index), key, (void*)__64BPTRSIZE(ival), NULL); } } + + script->parser_current_file = NULL;/* reset */ } /* flag it back */ -- cgit v1.2.3-70-g09d2