Remove beacons when the badgers get shot down

This commit is contained in:
abcdefg30
2014-09-19 15:50:11 +02:00
parent f5a1122c6d
commit 4f0b18a3dc
2 changed files with 18 additions and 0 deletions

View File

@@ -106,6 +106,15 @@ namespace OpenRA.Mods.RA
}
camera = null;
if (beacon != null)
{
self.World.AddFrameEndTask(w =>
{
w.Remove(beacon);
beacon = null;
});
}
}
};

View File

@@ -115,6 +115,15 @@ namespace OpenRA.Mods.RA
}
camera = null;
if (beacon != null)
{
self.World.AddFrameEndTask(w =>
{
w.Remove(beacon);
beacon = null;
});
}
}
};