- Modified item buying logic: selected items are purchased immediately without having to click the "buy" button, and they stay in the list of purchased items until the round is started. (-> It's possible to see which items have been purchased and cancel purchases).
- Clients can be given a permission to manage the campaign (atm selecting which location to head towards and buying items). - Syncing cargomanager state with clients. - Misc fixes.
This commit is contained in:
@@ -748,7 +748,7 @@ namespace Barotrauma.Networking
|
||||
|
||||
if (!sender.HasPermission(command))
|
||||
{
|
||||
Log("Client \""+sender.name+"\" sent a server command \""+command+"\". Permission denied.", ServerLog.MessageType.ServerMessage);
|
||||
Log("Client \"" + sender.name + "\" sent a server command \"" + command + "\". Permission denied.", ServerLog.MessageType.ServerMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -781,6 +781,13 @@ namespace Barotrauma.Networking
|
||||
EndGame();
|
||||
}
|
||||
break;
|
||||
case ClientPermissions.ManageCampaign:
|
||||
MultiplayerCampaign campaign = GameMain.GameSession.GameMode as MultiplayerCampaign;
|
||||
if (campaign != null)
|
||||
{
|
||||
campaign.ServerRead(inc, sender);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
inc.ReadPadBits();
|
||||
|
||||
Reference in New Issue
Block a user