Fix collapse operators and boolean property operator.
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Cryville.Crtr {
|
||||
readonly Action<bool> _cb;
|
||||
public Boolean(Action<bool> cb) { _cb = cb; }
|
||||
protected override void Execute() {
|
||||
_cb(GetOperand(0).AsNumber() != 0);
|
||||
_cb(GetOperand(0).AsNumber() > 0);
|
||||
}
|
||||
}
|
||||
public class Integer : PropOp {
|
||||
|
Reference in New Issue
Block a user