Skip to content
Permalink
Browse files

Corrected PK Mapflag assignment (#4165)

* Fixes an issue with different player versus player mapflags not being checked before applying the PK mapflag.
Thanks to @LiamKarlMitchell!
  • Loading branch information...
aleos89 committed Jun 4, 2019
1 parent f8ea43e commit a548f20c940036a7c05c561c1363cb51a5849922
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/map/map.cpp
@@ -3660,7 +3660,7 @@ void map_flags_init(void){
continue;

// adjustments
if( battle_config.pk_mode && !mapdata->flag[MF_PVP] )
if( battle_config.pk_mode && !mapdata_flag_vs2(mapdata) )
mapdata->flag[MF_PVP] = true; // make all maps pvp for pk_mode [Valaris]
}
}

1 comment on commit a548f20

@LiamKarlMitchell

This comment has been minimized.

Copy link
Contributor

commented on a548f20 Jun 6, 2019

Cheers :)

Please sign in to comment.
You can’t perform that action at this time.