Adds a warping state check

Thanks to @Lemongrass3110!
This commit is contained in:
Aleos 2020-04-30 08:54:20 -04:00 committed by GitHub
parent 506cf4fbdd
commit d1d1a196ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19037,6 +19037,10 @@ void clif_parse_reqworldinfo(int fd,struct map_session_data *sd) {
/// Enable playing abilities of a player if map is done loading. /// Enable playing abilities of a player if map is done loading.
/// 0447 (CZ_BLOCKING_PLAY_CANCEL) /// 0447 (CZ_BLOCKING_PLAY_CANCEL)
void clif_parse_blocking_playcancel(int fd,struct map_session_data *sd) { void clif_parse_blocking_playcancel(int fd,struct map_session_data *sd) {
if (sd == nullptr)
return;
if (sd->state.warping == 0)
status_change_end(&sd->bl, SC_BLOCKING_PLAY, INVALID_TIMER); status_change_end(&sd->bl, SC_BLOCKING_PLAY, INVALID_TIMER);
} }