diff options
author | shennetsind <ind@henn.et> | 2014-03-29 23:58:08 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-03-29 23:58:08 -0300 |
commit | d9f4084d50057f1103cbdae03dea3b4abddaa209 (patch) | |
tree | 7d6fafa984c2d02251eec1ce2ad6b0ddc3ed05dd /src | |
parent | 7b430a5748662598743f7bb2c61bd4fe389cfd98 (diff) | |
download | hercules-d9f4084d50057f1103cbdae03dea3b4abddaa209.tar.gz hercules-d9f4084d50057f1103cbdae03dea3b4abddaa209.tar.bz2 hercules-d9f4084d50057f1103cbdae03dea3b4abddaa209.tar.xz hercules-d9f4084d50057f1103cbdae03dea3b4abddaa209.zip |
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 <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r-- | src/map/intif.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |