Conflicts:
	src/actor.h
This commit is contained in:
Christoph Oelckers 2015-04-30 10:03:50 +02:00
commit 84351419a3
20 changed files with 256 additions and 94 deletions

View file

@ -1223,11 +1223,14 @@ void FParser::SF_ObjFlag(void)
if(mo && flagnum<26) // nullptr check
{
DWORD tempflags = mo->flags;
// remove old bit
mo->flags &= ~(1 << flagnum);
tempflags &= ~(1 << flagnum);
// make the new flag
mo->flags |= (!!intvalue(t_argv[2])) << flagnum;
tempflags |= (!!intvalue(t_argv[2])) << flagnum;
mo->flags = ActorFlags::FromInt (tempflags);
}
}
t_return.type = svt_int;