Fold nm_messagebox call in net_udp_do_join_game

This commit is contained in:
Kp 2016-05-28 17:31:27 +00:00
parent 82a8f6ebb0
commit f073e9e377

View file

@ -4566,10 +4566,7 @@ int net_udp_do_join_game()
if (!net_udp_can_join_netgame(&Netgame))
{
if (Netgame.numplayers == Netgame.max_numplayers)
nm_messagebox(TXT_SORRY, 1, TXT_OK, TXT_GAME_FULL);
else
nm_messagebox(TXT_SORRY, 1, TXT_OK, TXT_IN_PROGRESS);
nm_messagebox(TXT_SORRY, 1, TXT_OK, Netgame.numplayers == Netgame.max_numplayers ? TXT_GAME_FULL : TXT_IN_PROGRESS);
return 0;
}