Adds a warping state check
Thanks to @Lemongrass3110!
This commit is contained in:
parent
506cf4fbdd
commit
d1d1a196ea
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user