diff --git a/engine/src/C4AulLink.cpp b/engine/src/C4AulLink.cpp index 9911e14e9..3a80cded2 100644 --- a/engine/src/C4AulLink.cpp +++ b/engine/src/C4AulLink.cpp @@ -265,6 +265,14 @@ void C4AulScriptEngine::Link(C4DefList *rDefs) // update material pointers Game.Material.UpdateScriptPointers(); + // FIXME: move this to script + C4PropList * Action = new C4PropList; + Action->SetProperty(Strings.P[P_Length], C4VInt(1)); + Action->SetProperty(Strings.P[P_Directions], C4VInt(1)); + Action->SetProperty(Strings.P[P_Step], C4VInt(1)); + Action->SetProperty(Strings.P[P_Procedure], C4VInt(DFA_NONE)); + GlobalNamed.GetItem("Action")->SetPropList(Action); + rDefs->CallEveryDefinition(); // display state LogF("C4AulScriptEngine linked - %d line%s, %d warning%s, %d error%s", diff --git a/planet/System.c4g/C4.c b/planet/System.c4g/C4.c index a7e48708a..ee5f0bba2 100644 --- a/planet/System.c4g/C4.c +++ b/planet/System.c4g/C4.c @@ -22,6 +22,7 @@ static const DFA_ATTACH =14; static const DFA_FIGHT =15; static const DFA_CONNECT =16; static const DFA_PULL =17; +static Action; global func GetActMapVal(string strEntry, string strAction, id idDef, int iEntryNr) { if (!idDef) idDef = GetID();