Skip to content

Commit

Permalink
Resetting server variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TanishTuteja committed Apr 17, 2022
1 parent cc3b6d8 commit 0fa9a06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ int main()
numBytes = serialize(&gameResP2, msgBuffer);
sendto(sockfd, msgBuffer, numBytes, 0, (const struct sockaddr *)&otherAddr,
sizeof(otherAddr));
p1Ended = false;
p2Ended = false;
waiting = false;
}
}
}

0 comments on commit 0fa9a06

Please sign in to comment.