Notify the server after installing a map.

This commit is contained in:
Paul Chote
2016-03-18 17:55:12 +00:00
parent 51bfe4accc
commit 0dc939e0e8
2 changed files with 5 additions and 3 deletions

View File

@@ -314,7 +314,7 @@ namespace OpenRA
});
}
public void Install()
public void Install(Action onSuccess)
{
if (Status != MapStatus.DownloadAvailable || !Game.Settings.Game.AllowDownloading)
return;
@@ -372,6 +372,7 @@ namespace OpenRA
{
var package = modData.ModFiles.OpenPackage(mapFilename, mapInstallPackage);
UpdateFromMap(package, mapInstallPackage, MapClassification.User, null, GridType);
onSuccess();
});
};