Merge branch 'master' of https://github.com/crimsondusk/zdoom
Conflicts: src/actor.h
This commit is contained in:
commit
84351419a3
20 changed files with 256 additions and 94 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue