- Autorestart works in campaign mode.
- The server select a random destination when the campaign starts and after each round, so the campaign can be played even if there's no host/client to choose the destinations. (TODO: make it possible to vote for the destination?) - Reverting to the previous save if the entire crew is dead works correctly now. - Clients load the campaign saves after receiving them (-> discovered locations/connections are synced with clients).
This commit is contained in:
@@ -156,8 +156,12 @@ namespace Barotrauma
|
||||
if (spMode != null)
|
||||
{
|
||||
button = new GUIButton(new Rectangle(0, y, 0, 30), "Load previous", Alignment.CenterX, "", pauseMenu);
|
||||
button.OnClicked += TogglePauseMenu;
|
||||
button.OnClicked += GameMain.GameSession.LoadPrevious;
|
||||
button.OnClicked += (btn, userData) =>
|
||||
{
|
||||
TogglePauseMenu(btn, userData);
|
||||
GameMain.GameSession.LoadPrevious();
|
||||
return true;
|
||||
};
|
||||
|
||||
y += 60;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user