Resolves a mapflag overlap warning with PK Mode (#7109)
* Fixes #7099. * Hides a warning message when PK Mode is enabled and a Battleground mapflag is attempted to overwrite the PvP mapflag. Thanks to @LolyAll!
This commit is contained in:
parent
caa5cdd678
commit
c2303c8f65
@ -4739,7 +4739,8 @@ bool map_setmapflag_sub(int16 m, enum e_mapflag mapflag, bool status, union u_ma
|
||||
|
||||
if (mapdata->flag[MF_PVP]) {
|
||||
mapdata->flag[MF_PVP] = false;
|
||||
ShowWarning("map_setmapflag: Unable to set PvP and Battleground flags for the same map! Removing PvP flag from %s.\n", mapdata->name);
|
||||
if (!battle_config.pk_mode)
|
||||
ShowWarning("map_setmapflag: Unable to set PvP and Battleground flags for the same map! Removing PvP flag from %s.\n", mapdata->name);
|
||||
}
|
||||
if (mapdata->flag[MF_GVG]) {
|
||||
mapdata->flag[MF_GVG] = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user