mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-17 17:41:57 +00:00
Don't show "All" room when hosting
This commit is contained in:
parent
06764dd88e
commit
8228182823
2 changed files with 13 additions and 8 deletions
|
@ -143,7 +143,7 @@ HMS_in_use (void)
|
|||
}
|
||||
|
||||
void
|
||||
HMS_fetch_rooms (void)
|
||||
HMS_fetch_rooms (int joining)
|
||||
{
|
||||
struct HMS_buffer *hms;
|
||||
char *p;
|
||||
|
@ -179,12 +179,17 @@ HMS_fetch_rooms (void)
|
|||
break;
|
||||
}
|
||||
|
||||
room_list[i].header.buffer[0] = 1;
|
||||
room_list[i].id = 0;
|
||||
strcpy(room_list[i].name, "All");
|
||||
strcpy(room_list[i].motd, "Wildcard.");
|
||||
if (joining)
|
||||
{
|
||||
room_list[i].header.buffer[0] = 1;
|
||||
room_list[i].id = 0;
|
||||
strcpy(room_list[i].name, "All");
|
||||
strcpy(room_list[i].motd, "Wildcard.");
|
||||
|
||||
room_list[i + 1].header.buffer[0] = 0;
|
||||
i++;
|
||||
}
|
||||
|
||||
room_list[i].header.buffer[0] = 0;
|
||||
}
|
||||
HMS_end(hms);
|
||||
}
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
|
||||
/* HTTP */
|
||||
int HMS_in_use (void);
|
||||
void HMS_fetch_rooms (void);
|
||||
void HMS_fetch_rooms (int joining);
|
||||
int HMS_register (void);
|
||||
void HMS_unlist (void);
|
||||
void HMS_update (void);
|
||||
|
@ -515,7 +515,7 @@ INT32 GetRoomsList(boolean hosting)
|
|||
|
||||
if (HMS_in_use())
|
||||
{
|
||||
HMS_fetch_rooms();
|
||||
HMS_fetch_rooms( ! hosting );
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue