diff options
author | Wesley Johnson <pr-wj@usgo.net> | 2025-07-08 13:58:52 +0000 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-07-08 13:58:52 +0000 |
commit | 3849649d827d6841c9545cc8644912854781dce0 (patch) | |
tree | ebc92f955fdf1f725f5db572bf1bebf64228344d /src/map | |
parent | 6c2b1a87f4c857bdb36c3583cd019b821b03e51d (diff) | |
download | tmwa-master.tar.gz tmwa-master.tar.bz2 tmwa-master.tar.xz tmwa-master.zip |
Function: builtin_countitem
The error msg using nameid made no sense as it is output only when there is no nameid info.
Changed to "no item ID".
Function: builtin_end
The error msg "close in a callfunc or callsub", refers to the wrong function.
Changed to msg "end in a callfunc or callsub".
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/script-fun.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index 64ba542..58bca90 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -1920,7 +1920,7 @@ void builtin_countitem(ScriptState *st) else { if (battle_config.error_log) - PRINTF("wrong item ID: countitem (%i)\n"_fmt, nameid); + PRINTF("builtin_countitem: no item ID\n"_fmt); } push_int<ScriptDataInt>(st->stack, count); @@ -2491,9 +2491,9 @@ void builtin_end(ScriptState *st) { dumb_ptr<npc_data> nd = map_id_is_npc(st->oid); if(nd) - PRINTF("Deprecated: close in a callfunc or callsub! @ %s\n"_fmt, nd->name); + PRINTF("Deprecated: end in a callfunc or callsub! @ %s\n"_fmt, nd->name); else - PRINTF("Deprecated: close in a callfunc or callsub! (no npc)\n"_fmt); + PRINTF("Deprecated: end in a callfunc or callsub! (no npc)\n"_fmt); } st->state = ScriptEndState::END; } |