mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-24 21:01:17 +00:00
add support for % operator in QC (untested)
This commit is contained in:
parent
8bbe24a289
commit
e2242f2010
2 changed files with 7 additions and 1 deletions
|
@ -124,7 +124,9 @@ enum {
|
|||
OP_OR,
|
||||
|
||||
OP_BITAND,
|
||||
OP_BITOR
|
||||
OP_BITOR,
|
||||
|
||||
OP_MOD_F,
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -477,6 +477,10 @@ while (1)
|
|||
c->_float = a->_float / b->_float;
|
||||
break;
|
||||
|
||||
case OP_MOD_F:
|
||||
c->_float = (int)a->_float % (int)b->_float;
|
||||
break;
|
||||
|
||||
case OP_BITAND:
|
||||
c->_float = (int)a->_float & (int)b->_float;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue