We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eb4f8b2 + e18afe9 commit 6226504Copy full SHA for 6226504
1 file changed
src/system.go
@@ -3623,7 +3623,13 @@ func (s *System) runMatch() (reload bool) {
3623
s.esc = true
3624
}
3625
if s.netConnection != nil {
3626
- defer s.netConnection.Stop()
+ defer func() {
3627
+ // Keep delay-netplay alive across Turns character swaps;
3628
+ // stopping here can desync nc.time before the next Synchronize().
3629
+ if s.matchOver() || s.esc || s.endMatch || s.gameEnd || s.fightLoopEnd {
3630
+ s.netConnection.Stop()
3631
+ }
3632
+ }()
3633
3634
3635
// Setup characters
0 commit comments