remove redundant MissionIsOver check in Tick

This commit is contained in:
Matthias Mailänder
2013-12-30 09:26:05 +01:00
parent 4bf5f62ed4
commit ec3f44e536
2 changed files with 12 additions and 16 deletions

View File

@@ -50,12 +50,10 @@ Tick = function()
SetGunboatPath()
end
if not Mission.MissionIsOver then
if Mission.RequiredUnitsAreDestroyed(player) then
MissionFailed()
end
if Mission.RequiredUnitsAreDestroyed(enemy) then
MissionAccomplished()
end
if Mission.RequiredUnitsAreDestroyed(player) then
MissionFailed()
end
if Mission.RequiredUnitsAreDestroyed(enemy) then
MissionAccomplished()
end
end