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!
This commit is contained in:
Aleos 2019-06-04 09:34:30 -04:00 committed by GitHub
parent f8ea43ebc7
commit a548f20c94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]
}
}