Skip to content

Commit

Permalink
Fix: NETsetNoSendOverNetwork should be called on game queues when !Ne…
Browse files Browse the repository at this point in the history
…tPlay.bComms

This prevents net messages from being endlessly buffered in modes that don't send them over the network (i.e. campaign, skirmish, etc).
  • Loading branch information
past-due committed Mar 31, 2024
1 parent de9b317 commit 02ff657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,7 @@ bool stageTwoInitialise()
{
NETinitQueue(NETgameQueue(i));

if (!myResponsibility(i))
if (!myResponsibility(i) || !NetPlay.bComms)
{
NETsetNoSendOverNetwork(NETgameQueue(i));
}
Expand Down

0 comments on commit 02ff657

Please sign in to comment.