Correct the condition expression...
...so that there is no discrepancy between defeat and victory. No need to test for nconnections, the test will be done in send_data anyway, and this is not a critical path of the program.
This commit is contained in:
parent
93d55563c4
commit
5939ad2252
1 changed files with 1 additions and 1 deletions
|
@ -713,7 +713,7 @@ redo_turn:
|
|||
|
||||
//if we're a player, and the result is victory/defeat, then send a message to notify
|
||||
//the server of the reason for the game ending
|
||||
if(end_level.result == DEFEAT || end_level.result == VICTORY && network::nconnections() > 0) {
|
||||
if (end_level.result == DEFEAT || end_level.result == VICTORY) {
|
||||
config cfg;
|
||||
config& info = cfg.add_child("info");
|
||||
info["type"] = "termination";
|
||||
|
|
Loading…
Add table
Reference in a new issue