moving brick: fix movement graph saving

Did not test all corner cases but this improves the situation for sure.
master
Maikel de Vries 2018-03-14 17:54:25 +01:00
parent 6efb292fa7
commit 3da209462e
1 changed files with 3 additions and 2 deletions

View File

@ -144,6 +144,7 @@ public func MoveOnGraph(proplist graph)
movement = { Type = MovementType.Graph, Graph = graph };
OnGraphUpdate(movement.Graph);
var effect = AddEffect("MoveOnGraph", this, 100, 1, this);
effect.movement_graph = graph;
return;
}
@ -280,9 +281,9 @@ func FxMoveVerticalSaveScen(obj, fx, props)
return true;
}
func FxMoveGraphSaveScen(obj, fx, props)
func FxMoveOnGraphSaveScen(obj, fx, props)
{
props->AddCall("Move", obj, "MoveOnGraph", obj.movement_graph);
props->AddCall("Move", obj, "MoveOnGraph", fx.movement_graph);
return true;
}