Override Lua's print function with Internal.Debug

This commit is contained in:
ScottNZ
2013-12-06 02:38:24 +13:00
parent aca618ceef
commit c39bd53e2a

View File

@@ -1,3 +1,5 @@
print = Internal.Debug
OpenRA = { }
OpenRA.New = function(className, args)
@@ -11,10 +13,6 @@ OpenRA.RunAfterDelay = function(delay, func)
Internal.RunAfterDelay(delay, func)
end
OpenRA.Debug = function(obj)
Internal.Debug(obj)
end
OpenRA.SetViewportCenterPosition = function(position)
WorldRenderer.Viewport:Center(position)
end