diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-09-06 01:45:19 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-09-06 01:45:19 -0700 |
commit | 14347ea3be189918fef03b766c97391b7ff33cdd (patch) | |
tree | 0ab3a1278bd44fce401b623a1f59a438c9fc70b3 | |
parent | dafb447729edd6755492e9207d16ab8bfce4a8cf (diff) | |
download | tmwa-14347ea3be189918fef03b766c97391b7ff33cdd.tar.gz tmwa-14347ea3be189918fef03b766c97391b7ff33cdd.tar.bz2 tmwa-14347ea3be189918fef03b766c97391b7ff33cdd.tar.xz tmwa-14347ea3be189918fef03b766c97391b7ff33cdd.zip |
Stupid hidden loops, I need another macro for this
-rw-r--r-- | src/map/magic-stmt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/magic-stmt.cpp b/src/map/magic-stmt.cpp index fd02d45..2a657fa 100644 --- a/src/map/magic-stmt.cpp +++ b/src/map/magic-stmt.cpp @@ -1382,7 +1382,7 @@ interval_t spell_run(dumb_ptr<invocation> invocation_, int allow_delete) if (recipient->npc_id && recipient->npc_id != invocation_->bl_id) - break; /* Don't send multiple message boxes at once */ + goto break_match; /* Don't send multiple message boxes at once */ if (!invocation_->script_pos) // first time running this script? clif_spawn_fake_npc_for_player(recipient, @@ -1438,6 +1438,7 @@ interval_t spell_run(dumb_ptr<invocation> invocation_, int allow_delete) } } + break_match: if (!next) next = return_to_stack(invocation_); |