rename function

This commit is contained in:
Andy Newjack 2020-03-21 13:41:01 -03:00 committed by jake
parent 38b0cac09b
commit 648fdfc0ec
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ impl ClientLocation {
.any(|k| k);
}
pub fn get_clients_in_room(&self, room_id: RoomId) -> u8 {
pub fn get_client_count_in_room(&self, room_id: RoomId) -> u8 {
self.rooms[room_id.0].as_ref()
.unwrap()
.read()

View File

@ -447,7 +447,7 @@ impl<EG: EntityGateway> ShipServerState<EG> {
menu_id: ROOM_MENU_ID,
item_id: i as u32,
difficulty: room.get_difficulty_for_room_list(),
players: self.client_location.get_clients_in_room(RoomId(i)), // TODO
players: self.client_location.get_client_count_in_room(RoomId(i)), // TODO
name: libpso::utf8_to_utf16_array!(room.name, 16),
episode: room.get_episode_for_room_list(),
flags: room.get_flags_for_room_list(),