From 0e182e4fa8bf27e663919c51e48db89f0546d9e5 Mon Sep 17 00:00:00 2001 From: atlimit8 Date: Sat, 11 Oct 2014 05:26:56 -0500 Subject: [PATCH 1/2] Fixes old Lua Turn Activity crash --- mods/common/lua/actor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/common/lua/actor.lua b/mods/common/lua/actor.lua index f9c208a630..b184f8101a 100644 --- a/mods/common/lua/actor.lua +++ b/mods/common/lua/actor.lua @@ -16,7 +16,7 @@ Actor.Create = function(name, init) end Actor.Turn = function(actor, facing) - actor:QueueActivity(OpenRA.New("Turn", { { facing, "Int32" } })) + actor:QueueActivity(OpenRA.New("Turn", { actor, { facing, "Int32" } })) end Actor.Move = function(actor, location) From 6640fa2539cf37aca63553447a71d80266fc85b6 Mon Sep 17 00:00:00 2001 From: atlimit8 Date: Sat, 11 Oct 2014 06:27:49 -0500 Subject: [PATCH 2/2] Fixes old Lua Move Activity --- mods/common/lua/actor.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/common/lua/actor.lua b/mods/common/lua/actor.lua index b184f8101a..0ace58e364 100644 --- a/mods/common/lua/actor.lua +++ b/mods/common/lua/actor.lua @@ -24,14 +24,14 @@ Actor.Move = function(actor, location) end Actor.MoveNear = function(actor, location, nearEnough) - actor:QueueActivity(OpenRA.New("Move", { location, WRange.FromCells(nearEnough) })) + actor:QueueActivity(OpenRA.New("Move", { actor, location, WRange.FromCells(nearEnough) })) end Actor.ScriptedMove = function(actor, location) if Actor.HasTrait(actor, "Helicopter") then Internal.HeliFlyToPos(actor, Map.CenterOfCell(location)) else - actor:QueueActivity(OpenRA.New("Move", { location })) + actor:QueueActivity(OpenRA.New("Move", { actor, location })) end end