diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-06-25 18:00:28 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-15 11:45:21 -0400 |
commit | e0ab38974d08268fd0bbbae16293afb31686c9f8 (patch) | |
tree | 0d1801d5f42e47d4a74338c6afc4749b112e8d0c /src/map/npc.cpp | |
parent | e5c60513d5b9c41cdca5ff0c01023d9ef4eb0cfb (diff) | |
download | tmwa-e0ab38974d08268fd0bbbae16293afb31686c9f8.tar.gz tmwa-e0ab38974d08268fd0bbbae16293afb31686c9f8.tar.bz2 tmwa-e0ab38974d08268fd0bbbae16293afb31686c9f8.tar.xz tmwa-e0ab38974d08268fd0bbbae16293afb31686c9f8.zip |
do non-timer events synchronously
Diffstat (limited to 'src/map/npc.cpp')
-rw-r--r-- | src/map/npc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/npc.cpp b/src/map/npc.cpp index c4187c1..a40a4ec 100644 --- a/src/map/npc.cpp +++ b/src/map/npc.cpp @@ -622,7 +622,7 @@ int npc_event(dumb_ptr<map_session_data> sd, NpcEvent eventname, && (sd->bl_y < nd->bl_y - ys / 2 || nd->bl_y + ys / 2 < sd->bl_y)) return 1; } - if (sd->npc_id) + if (sd->npc_id && sd->npc_pos > -1 && args.size() < 1) // if called from a timer we process async, otherwise sync { sd->eventqueuel.push_back(eventname); return 1; |