Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
RedpointGames
A Momentary Meeting
Commits
4898cb18
Commit
4898cb18
authored
Jan 31, 2021
by
June
Browse files
Fix player music sync at end of meeting
parent
7f51e2f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
MomentaryMeeting/Game/GameInstance.cs
View file @
4898cb18
...
...
@@ -59,7 +59,7 @@ namespace MomentaryMeeting.Game
_arrangementGenerator
.
Generate
();
foreach
(
var
kv
in
_players
)
{
// No need to wait for anything here, just make a best-effort
// No need to wait for anything here, ju
st make a best-effort
// broadcast to all players
_
=
this
.
SendPromptToPlayer
(
kv
.
Value
,
">"
+
_databaseApi
.
Current
.
GlobalText
.
SelectFromList
(
"world_shift"
));
}
...
...
@@ -180,14 +180,15 @@ namespace MomentaryMeeting.Game
{
term
=
_databaseApi
.
Current
.
GlobalText
.
SelectFromList
(
"end_meeting_torn"
);
term
+=
"\n\n"
+
_commandParser
.
GetRoomDescription
(
conn
.
User
);
await
SyncPlayerMusic
(
conn
);
await
SendPromptToPlayer
(
conn
,
term
);
}
else
{
term
=
">"
+
_databaseApi
.
Current
.
GlobalText
.
SelectFromList
(
"end_meeting_apart"
);
await
SyncPlayerMusic
(
conn
);
await
SendPromptToPlayer
(
conn
,
term
);
}
await
SyncPlayerMusic
(
conn
);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment