From 754cec44589d8e0c899b36e2cf216a0ef8aec27f Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Mon, 29 Jul 2019 21:08:35 +0200 Subject: Replace ArrayAppend(arr, value) with arr[] = value --- Items.c4d/Sensors.c4d/RC.c4d/Script.c | 4 ++-- System.c4g/IDs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Items.c4d/Sensors.c4d/RC.c4d/Script.c b/Items.c4d/Sensors.c4d/RC.c4d/Script.c index b582a4d..75d3157 100644 --- a/Items.c4d/Sensors.c4d/RC.c4d/Script.c +++ b/Items.c4d/Sensors.c4d/RC.c4d/Script.c @@ -646,13 +646,13 @@ global func FxIntJnRAimTimer(object target, int number, int time) // Controller weg? var controller = EffectVar(2, target, number); if(!controller) return(-1); - + // Controller muss Fahrzeug anfassen if(target) if(target->GetCategory() & C4D_Vehicle) if(controller->GetProcedure() != "PUSH" || (controller->GetActionTarget() != target && GetID(controller->GetActionTarget()) != RC7I)) return FX_Execute_Kill; - + if(target) target->AimConf(EffectVar(0, target, number), EffectVar(1, target, number), EffectVar(2, target, number)); else if(EffectVar(3, target, number)) diff --git a/System.c4g/IDs.c b/System.c4g/IDs.c index e5c1280..d1950dd 100644 --- a/System.c4g/IDs.c +++ b/System.c4g/IDs.c @@ -12,4 +12,4 @@ static const DT_Sensors_RemoteControl = RC7I; static const DT_Sensors_SensorBase = SN7I; static const DT_Sensors_SensorEntrance = SE7I; static const DT_Sensors_Switch = SW7I; -static const DT_Sensors_Timer = TI7I; +static const DT_Sensors_Timer = TI7I; \ No newline at end of file -- cgit v1.2.3-54-g00ecf