Skip to content

Commit

Permalink
Merge pull request #140 from arbruijn/level-not-matching
Browse files Browse the repository at this point in the history
Fix unclosable 'level file not matching' message
  • Loading branch information
roncli authored Dec 16, 2022
2 parents 131b10a + de8b849 commit 6736bcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion d1/main/net_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4268,6 +4268,8 @@ void net_udp_read_sync_packet( ubyte * data, int data_len, struct _sockaddr send
int i, j;

char temp_callsign[CALLSIGN_LEN+1];

int prev_status = Network_status;

// This function is now called by all people entering the netgame.

Expand All @@ -4289,7 +4291,8 @@ void net_udp_read_sync_packet( ubyte * data, int data_len, struct _sockaddr send
if (Netgame.segments_checksum != my_segments_checksum)
{
Network_status = NETSTAT_MENU;
nm_messagebox(TXT_ERROR, 1, TXT_OK, TXT_NETLEVEL_NMATCH);
if (prev_status != NETSTAT_MENU) // don't show messagebox if just dismissed
nm_messagebox(TXT_ERROR, 1, TXT_OK, TXT_NETLEVEL_NMATCH);
#ifdef NDEBUG
return;
#endif
Expand Down

0 comments on commit 6736bcc

Please sign in to comment.