From f4063c0d58d1a1812e24269efa1ebb8f9a7a2f2e Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Wed, 19 Feb 2014 23:22:10 -0800 Subject: Make mapflags bitmask instead of bitfield --- src/map/npc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/npc.cpp') diff --git a/src/map/npc.cpp b/src/map/npc.cpp index a939c74..43926e0 100644 --- a/src/map/npc.cpp +++ b/src/map/npc.cpp @@ -1532,8 +1532,8 @@ int npc_parse_mapflag(XString w1, XString, XString w3, ZString w4) if (battle_config.pk_mode && mf == MapFlag::NOPVP) { - m->flag.nopvp = 1; - m->flag.pvp = 0; + m->flag.set(MapFlag::NOPVP, 1); + m->flag.set(MapFlag::PVP, 0); return 0; } -- cgit v1.2.3-70-g09d2