Resolves players escaping jail early (#7781)
* Fixes #7771. * Adds a missing check to avoid warping players who are actively jailed out early after relogging. Thanks to @fab10Carvalho and @Lemongrass3110!
This commit is contained in:
parent
66dddb3b19
commit
2cfafe4c9f
@ -1926,6 +1926,11 @@ bool pc_lastpoint_special( map_session_data& sd ){
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strcmpi(sd.status.last_point.map, MAP_JAIL) == 0) {
|
||||||
|
// Don't return jailed player to save point.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Maybe since the player's logout the nosave mapflag was added to the map
|
// Maybe since the player's logout the nosave mapflag was added to the map
|
||||||
if( mapdata->getMapFlag(MF_NOSAVE) ){
|
if( mapdata->getMapFlag(MF_NOSAVE) ){
|
||||||
// The map has a specific return point
|
// The map has a specific return point
|
||||||
|
Loading…
x
Reference in New Issue
Block a user