diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-16 13:47:04 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-16 13:47:04 -0700 |
commit | 5a953aa7b15a3cea1db08b50ccc90e7218f77eb5 (patch) | |
tree | 4b51d5da2781959ff362a3a35007452aef9bb85b /src/map/clif.cpp | |
parent | a8ec74c0aaccf90920e33c8cfa0088359c853cfa (diff) | |
download | tmwa-5a953aa7b15a3cea1db08b50ccc90e7218f77eb5.tar.gz tmwa-5a953aa7b15a3cea1db08b50ccc90e7218f77eb5.tar.bz2 tmwa-5a953aa7b15a3cea1db08b50ccc90e7218f77eb5.tar.xz tmwa-5a953aa7b15a3cea1db08b50ccc90e7218f77eb5.zip |
Don't broadcast messages to players who are disconnecting
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r-- | src/map/clif.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp index ea92d15..6aa14ce 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -255,6 +255,9 @@ void clif_send_sub(dumb_ptr<block_list> bl, const unsigned char *buf, int len, nullpo_retv(bl); dumb_ptr<map_session_data> sd = bl->is_player(); + if (sd->sess->eof) + return; + switch (type) { case SendWho::AREA_WOS: |