Added code to send quit message only if game is not in single player mode
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -396,11 +396,13 @@ int main(int argc, char** argv) {
|
||||
}
|
||||
|
||||
/* If the game has been quit, ask the peer to quit as well */
|
||||
if (type.mode != M_SINGLE) {
|
||||
to_send_data = Serial_create_data(0, 0, 0, 0, true);
|
||||
type.netsock->sendAll((char *)Serial_serialize(to_send_data), sizeof(Serial_Data) + 1);
|
||||
sock_quit();
|
||||
}
|
||||
|
||||
window.Close();
|
||||
sock_quit();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user