some more locking into map borders

This commit is contained in:
Paolo Chiodi
2010-09-04 14:26:31 +02:00
committed by Paul Chote
parent 43aa8812b3
commit 2945838eef
3 changed files with 39 additions and 27 deletions

View File

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