201 { |
201 { |
202 switch (RCONUpdateType (packet.read_byte())) |
202 switch (RCONUpdateType (packet.read_byte())) |
203 { |
203 { |
204 case SVRCU_PLAYERDATA: |
204 case SVRCU_PLAYERDATA: |
205 { |
205 { |
206 Vector<String> players; |
206 StringList players; |
|
207 |
207 for (int i = packet.read_byte(); i > 0; --i) |
208 for (int i = packet.read_byte(); i > 0; --i) |
208 players << packet.read_string(); |
209 players << packet.read_string(); |
|
210 |
|
211 Interface::set_player_names (players); |
209 } |
212 } |
210 break; |
213 break; |
211 |
214 |
212 case SVRCU_ADMINCOUNT: |
215 case SVRCU_ADMINCOUNT: |
213 m_numAdmins = packet.read_byte(); |
216 m_numAdmins = packet.read_byte(); |