summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-03-29 23:58:08 -0300
committershennetsind <ind@henn.et>2014-03-29 23:58:08 -0300
commitd9f4084d50057f1103cbdae03dea3b4abddaa209 (patch)
tree7d6fafa984c2d02251eec1ce2ad6b0ddc3ed05dd /src/map
parent7b430a5748662598743f7bb2c61bd4fe389cfd98 (diff)
downloadhercules-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/map')
-rw-r--r--src/map/intif.c4
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 */