getmapflag MF_RESTRICTED (#4193)

* Corrected the value returned by getmapflag script command for MF_RESTRICTED
This commit is contained in:
Atemo
2019-06-03 20:45:19 +02:00
committed by GitHub
parent 3cb23fd5aa
commit f8ea43ebc7
6 changed files with 7 additions and 8 deletions

View File

@@ -4847,9 +4847,9 @@ bool map_setmapflag_sub(int16 m, enum e_mapflag mapflag, bool status, union u_ma
mapdata->flag[mapflag] = status;
if (!status)
mapdata->zone ^= 1 << (args->flag_val + 1);
mapdata->zone ^= (1 << (args->flag_val + 1)) << 3;
else
mapdata->zone |= 1 << (args->flag_val + 1);
mapdata->zone |= (1 << (args->flag_val + 1)) << 3;
break;
case MF_NOCOMMAND:
if (status) {