Fix logic of function release_timed_area.

This commit is contained in:
2023-06-02 22:39:37 +08:00
parent 2eba0e490f
commit 74ce265016

View File

@@ -860,7 +860,7 @@ namespace Cryville.Crtr {
if (tv != null) return new JudgeFunctionResult();
var t0 = GetOperand(0).AsNumber() + fn;
var t1 = GetOperand(1).AsNumber() + tn;
if (ft > t0 && ft <= t1) return new JudgeFunctionResult();
if (ft <= t0 || ft > t1) return new JudgeFunctionResult();
return new JudgeFunctionResult(EvaluateArea(fv), ft);
}
}