Explorar el Código

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!
Aleos hace 6 años
padre
commit
a548f20c94
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/map/map.cpp

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