Require explicit INotifyActorDisposing

This commit is contained in:
reaperrr
2017-09-27 22:38:42 +02:00
committed by abcdefg30
parent 5026dfe5d3
commit 9aaf800bca
9 changed files with 17 additions and 13 deletions

View File

@@ -88,6 +88,7 @@ namespace OpenRA.Mods.Common.Traits
readonly World world;
TerrainSpriteLayer render;
bool disposed;
public SmudgeLayer(Actor self, SmudgeLayerInfo info)
{
@@ -207,8 +208,7 @@ namespace OpenRA.Mods.Common.Traits
render.Draw(wr.Viewport);
}
bool disposed;
public void Disposing(Actor self)
void INotifyActorDisposing.Disposing(Actor self)
{
if (disposed)
return;