From e6cca647da0482090d2259a57bd7f8b8a87c1041 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Mon, 29 Jul 2019 21:08:36 +0200 Subject: Replace ArrayAppend(arr, value) with arr[] = value --- DTPhysicalStack.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'DTPhysicalStack.c') diff --git a/DTPhysicalStack.c b/DTPhysicalStack.c index c0aa7ad..327dfd0 100644 --- a/DTPhysicalStack.c +++ b/DTPhysicalStack.c @@ -10,14 +10,14 @@ global func AddPhysicalFactor(string physical, int factor, int precision, object { target = target || this || FatalError("AddPhysicalFactor: no target object given"); precision = precision || 100; - + return EffectCall(target, GetPhysicalFactorStack(target), "AddFactor", physical, factor, precision); } global func RemovePhysicalFactor(int id, object target) { target = target || this || FatalError("AddPhysicalFactor: no target object given"); - + return EffectCall(target, GetPhysicalFactorStack(target), "RemoveFactor", id); } @@ -31,7 +31,7 @@ global func FxPhysicalFactorStackStart(object target, int effectNumber, int temp global func FxPhysicalFactorStackAddFactor(object target, int effectNumber, string physical, int factor, int precision) { - ArrayAppend(EffectVar(1, target, effectNumber), [++EffectVar(0, target, effectNumber), physical, factor, precision]); + EffectVar(1, target, effectNumber)[] = [++EffectVar(0, target, effectNumber), physical, factor, precision]; EffectCall(target, effectNumber, "ApplyPhysical", physical); return EffectVar(0, target, effectNumber); } -- cgit v1.2.3-54-g00ecf