sources/network/rconsession.cpp

changeset 47
35b968619b0c
parent 32
ee770597a281
child 57
a2f41245e387
equal deleted inserted replaced
46:19be47c9bab7 47:35b968619b0c
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();

mercurial