diff options
author | Haru <haru@dotalux.com> | 2014-10-28 00:52:43 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-10-28 01:10:15 +0100 |
commit | 534921cf6e8c2ca683ca7c940306c373cfb0ad2b (patch) | |
tree | 6e373b155562f0ed857f4a91bb38d272ff53b434 /src/map/npc.c | |
parent | d5d4176f7fe8806eccd469843c9a6c7cffc3b518 (diff) | |
download | hercules-534921cf6e8c2ca683ca7c940306c373cfb0ad2b.tar.gz hercules-534921cf6e8c2ca683ca7c940306c373cfb0ad2b.tar.bz2 hercules-534921cf6e8c2ca683ca7c940306c373cfb0ad2b.tar.xz hercules-534921cf6e8c2ca683ca7c940306c373cfb0ad2b.zip |
Removed some temporary case-check error messages.
- Control flow statements (break, case, continue, default, do, for, if,
switch, whilei, else) and sub-function declarations (function) will no
longer show a custom error message when they are incorrectly
capitalized.
- Note: This does not mean that they are no longer case-sensitive. This
only means that no special message will be shown in case such an error
is detected. The script engine will throw a normal error, as it would
with any other kind of typo, rather than treating this as a special
case. Enough time was given to update third party scripts, and it is
now time to clean up our parsing code and get rid of these special
warnings.
- Variables, labels and commands will still show a warning for the time
being, since the side-effects of silently ignoring it could be quite
dangerous. An alternative approach to the case-check will be presented
in future. For now, those who want to disable it (and save a bit on
execution time and memory use), can simply comment out the #define
ENABLE_CASE_CHECK line in script.h, as usual.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c index 7e21e5a38..7378ac470 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -4276,7 +4276,7 @@ void npc_read_event_script(void) script_event[i].event_count++; #ifdef ENABLE_CASE_CHECK } else if( p && strcasecmp(name, p) == 0 ) { - DeprecationCaseWarning2("npc_read_event_script", p, name, config[i].event_name); // TODO + DeprecationCaseWarning("npc_read_event_script", p, name, config[i].event_name); // TODO #endif // ENABLE_CASE_CHECK } } |