Fixed mutliplayer-only missions being taken into account in the eventprobability calculation even in single player mode, which missions are sp/mp-only is determined in the mission config files
This commit is contained in:
@@ -74,6 +74,12 @@ namespace Barotrauma
|
||||
GameMain.Server.AllowRespawn = false;
|
||||
}
|
||||
|
||||
if (GameMain.NetworkMember == null)
|
||||
{
|
||||
DebugConsole.ThrowError("Combat missions cannot be played in the single player mode.");
|
||||
return;
|
||||
}
|
||||
|
||||
Items.Components.Radar.StartMarker = Locations[0];
|
||||
Items.Components.Radar.EndMarker = Locations[1];
|
||||
TeamASub = Submarine.MainSubs[0];
|
||||
@@ -159,6 +165,8 @@ namespace Barotrauma
|
||||
|
||||
public override void End()
|
||||
{
|
||||
if (GameMain.NetworkMember==null) return;
|
||||
|
||||
bool ADead = TeamACrew.All(c => c.IsDead || c.IsUnconscious);
|
||||
bool BDead = TeamBCrew.All(c => c.IsDead || c.IsUnconscious);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user