Merge branch 'master' into scripting
Conflicts: src/g_shared/a_sharedglobal.h src/thingdef/thingdef_codeptr.cpp src/thingdef/thingdef_data.cpp
This commit is contained in:
commit
5f1c4d157c
26 changed files with 327 additions and 120 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