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,7 +19037,11 @@ void clif_parse_reqworldinfo(int fd,struct map_session_data *sd) {
/// Enable playing abilities of a player if map is done loading.
/// 0447 (CZ_BLOCKING_PLAY_CANCEL)
void clif_parse_blocking_playcancel(int fd,struct map_session_data *sd) {
status_change_end(&sd->bl, SC_BLOCKING_PLAY, INVALID_TIMER);
if (sd == nullptr)
return;
if (sd->state.warping == 0)
status_change_end(&sd->bl, SC_BLOCKING_PLAY, INVALID_TIMER);
}
/// req world info (CZ_CLIENT_VERSION)