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:
Guillaume Melquiond 2005-02-03 19:03:51 +00:00
parent 93d55563c4
commit 5939ad2252

View file

@ -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";