- Improve the TFlags code and fix the new errors.
The previous version didn't detect some real mistakes in code which used operator& with the wrong flagset (for now 'converted' to the correcly equivalent counterpart, waiting for the proper fix).
This commit is contained in:
parent
72445667e3
commit
6678c3550e
11 changed files with 34 additions and 28 deletions
|
|
@ -1236,7 +1236,7 @@ void FParser::SF_ObjFlag(void)
|
|||
t_return.type = svt_int;
|
||||
if (mo && flagnum<26)
|
||||
{
|
||||
t_return.value.i = !!(mo->flags & (1 << flagnum));
|
||||
t_return.value.i = !!(mo->flags & ActorFlags::FromInt(1 << flagnum));
|
||||
}
|
||||
else t_return.value.i = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue