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); }