Change World.DisableTick to World.EnableTick
This commit is contained in:
@@ -150,11 +150,12 @@ namespace OpenRA
|
|||||||
public event Action<Actor> ActorRemoved = _ => { };
|
public event Action<Actor> ActorRemoved = _ => { };
|
||||||
|
|
||||||
// Will do bad things in multiplayer games
|
// Will do bad things in multiplayer games
|
||||||
public bool DisableTick = false;
|
public bool EnableTick = true;
|
||||||
|
|
||||||
public void Tick()
|
public void Tick()
|
||||||
{
|
{
|
||||||
// Todo: Expose this as an order so it can be synced
|
// Todo: Expose this as an order so it can be synced
|
||||||
if (!DisableTick)
|
if (EnableTick)
|
||||||
{
|
{
|
||||||
using( new PerfSample("tick_idle") )
|
using( new PerfSample("tick_idle") )
|
||||||
foreach( var ni in ActorsWithTrait<INotifyIdle>() )
|
foreach( var ni in ActorsWithTrait<INotifyIdle>() )
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace OpenRA.Scripting
|
|||||||
{
|
{
|
||||||
var playerRoot = Game.OpenWindow(w, "FMVPLAYER");
|
var playerRoot = Game.OpenWindow(w, "FMVPLAYER");
|
||||||
var player = playerRoot.GetWidget<VqaPlayerWidget>("PLAYER");
|
var player = playerRoot.GetWidget<VqaPlayerWidget>("PLAYER");
|
||||||
w.DisableTick = true;
|
w.EnableTick = false;
|
||||||
player.Load(movie);
|
player.Load(movie);
|
||||||
|
|
||||||
// Mute world sounds
|
// Mute world sounds
|
||||||
@@ -39,7 +39,7 @@ namespace OpenRA.Scripting
|
|||||||
|
|
||||||
Widget.CloseWindow();
|
Widget.CloseWindow();
|
||||||
Sound.SoundVolumeModifier = oldModifier;
|
Sound.SoundVolumeModifier = oldModifier;
|
||||||
w.DisableTick = false;
|
w.EnableTick = true;
|
||||||
onComplete();
|
onComplete();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user