From 48d1dde8a7ff248e774527526cde64c08d260427 Mon Sep 17 00:00:00 2001 From: Pavlos Touboulidis Date: Sat, 10 May 2014 10:15:54 +0300 Subject: [PATCH] Change comment about delayed actions --- OpenRA.Game/Game.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index 99a624b316..910c547c41 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -117,7 +117,8 @@ namespace OpenRA }, parent, id); } - // TODO: Delayed actions shouldn't be static or at least should be cleared when the map/world is changed + // Note: These delayed actions should only be used by widgets or disposing objects + // - things that depend on a particular world should be queuing them on the worldactor. static ActionQueue delayedActions = new ActionQueue(); public static void RunAfterTick(Action a) { delayedActions.Add(a); } public static void RunAfterDelay(int delay, Action a) { delayedActions.Add(a, delay); }