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 authored and pull[bot] committed Jun 25, 2024
1 parent 5887032 commit 107950e
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 107950e

Please sign in to comment.