diff options
author | Haru <haru@dotalux.com> | 2016-01-12 16:56:33 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-01-12 17:28:40 +0100 |
commit | ed05ed85c0bc44980168f730d02dfd379a2bfda9 (patch) | |
tree | ad2e3ef67876d58982eb355cab55f8b9a2551585 /src/map/script.c | |
parent | c01f74557fb80e8d99fa54140d4741d34a4d5019 (diff) | |
download | hercules-ed05ed85c0bc44980168f730d02dfd379a2bfda9.tar.gz hercules-ed05ed85c0bc44980168f730d02dfd379a2bfda9.tar.bz2 hercules-ed05ed85c0bc44980168f730d02dfd379a2bfda9.tar.xz hercules-ed05ed85c0bc44980168f730d02dfd379a2bfda9.zip |
Replaced 22-bit mask entry with a regular uint32 in the noviewid mapflag implementation
As per ultramage's suggestion in #926
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index befb85304..5752c8a31 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11808,7 +11808,7 @@ BUILDIN(setmapflag) { case MF_RESET: map->list[m].flag.reset = 1; break; case MF_NOTOMB: map->list[m].flag.notomb = 1; break; case MF_NOCASHSHOP: map->list[m].flag.nocashshop = 1; break; - case MF_NOVIEWID: map->list[m].flag.noviewid = (val <= 0) ? 0 : val; break; + case MF_NOVIEWID: map->list[m].flag.noviewid = (val <= 0) ? EQP_NONE : val; break; } } @@ -11895,7 +11895,7 @@ BUILDIN(removemapflag) { case MF_RESET: map->list[m].flag.reset = 0; break; case MF_NOTOMB: map->list[m].flag.notomb = 0; break; case MF_NOCASHSHOP: map->list[m].flag.nocashshop = 0; break; - case MF_NOVIEWID: map->list[m].flag.noviewid = 0; break; + case MF_NOVIEWID: map->list[m].flag.noviewid = EQP_NONE; break; } } |