From 648fdfc0ecfedc9e4ca2206abb12a0b75e9a487f Mon Sep 17 00:00:00 2001 From: Andy Newjack Date: Sat, 21 Mar 2020 13:41:01 -0300 Subject: [PATCH] rename function --- src/ship/location.rs | 2 +- src/ship/ship.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ship/location.rs b/src/ship/location.rs index 7aa5541..666b797 100644 --- a/src/ship/location.rs +++ b/src/ship/location.rs @@ -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() diff --git a/src/ship/ship.rs b/src/ship/ship.rs index e3f9649..89c73fb 100644 --- a/src/ship/ship.rs +++ b/src/ship/ship.rs @@ -447,7 +447,7 @@ impl ShipServerState { 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(),