allow camera shaking to exit map borders

This commit is contained in:
Paolo Chiodi
2010-09-03 20:13:51 +02:00
parent dfdc893d63
commit 1c8f744719
2 changed files with 23 additions and 20 deletions

View File

@@ -23,7 +23,7 @@ namespace OpenRA.Traits
public void Tick (Actor self)
{
Game.viewport.Scroll(GetScrollOffset());
Game.viewport.Scroll(GetScrollOffset(), true);
shakeEffects.RemoveAll(t => t.ExpiryTime == ticks);
ticks++;
}