sources/network/rconsession.cpp

changeset 23
f7221183a994
parent 22
77d02446edf0
child 24
e651d02802c0
equal deleted inserted replaced
22:77d02446edf0 23:f7221183a994
1 #include "rconsession.h" 1 #include "rconsession.h"
2 #include "../interface.h"
2 3
3 RCONSession* g_rconSession = nullptr; 4 RCONSession* g_rconSession = nullptr;
4 5
5 // ------------------------------------------------------------------------------------------------- 6 // -------------------------------------------------------------------------------------------------
6 // 7 //
144 145
145 case SVRC_LOGGEDIN: 146 case SVRC_LOGGEDIN:
146 print ("Login successful!\n"); 147 print ("Login successful!\n");
147 m_serverProtocol = packet.read_byte(); 148 m_serverProtocol = packet.read_byte();
148 m_hostname = packet.read_string(); 149 m_hostname = packet.read_string();
150 Interface::set_title (m_hostname);
149 m_state = RCON_CONNECTED; 151 m_state = RCON_CONNECTED;
150 152
151 for (int i = packet.read_byte(); i > 0; --i) 153 for (int i = packet.read_byte(); i > 0; --i)
152 process_server_updates (packet); 154 process_server_updates (packet);
153 155

mercurial