Fix map
This commit is contained in:
parent
2bdfda9ce9
commit
6e9883932e
@ -26,16 +26,15 @@ namespace AirPlaneWithRadar
|
||||
public void AddMap(string name, AbstractMap map)
|
||||
{
|
||||
|
||||
Keys.Add(name);
|
||||
if (_mapStorages.ContainsKey(name))
|
||||
return;
|
||||
_mapStorages.Add(name, new MapWithSetPlainGeneric<DrawingObjectPlane, AbstractMap>(_pictureWidth, _pictureHeight, map));
|
||||
|
||||
}
|
||||
|
||||
public void DelMap(string name)
|
||||
{
|
||||
if (!_mapStorages.ContainsKey(name))
|
||||
return;
|
||||
Keys.Remove(name);
|
||||
|
||||
_mapStorages.Remove(name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user