@@ -31,7 +31,7 @@ void __cdecl callback_serverkey(int keyid, qr2_buffer_t outbuf, void* userdata)
3131{
3232 if (!userdata)
3333 return ;
34- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
34+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
3535 if (!pServer)
3636 return ;
3737 CGameSpy_QR2* pQR2 = pServer->QR2 ();
@@ -195,7 +195,7 @@ void __cdecl callback_serverkey(int keyid, qr2_buffer_t outbuf, void* userdata)
195195
196196void __cdecl callback_playerkey (int keyid, int index, qr2_buffer_t outbuf, void * userdata)
197197{
198- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
198+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
199199 if (!pServer)
200200 return ;
201201 if (u32 (index) >= pServer->GetClientsCount ())
@@ -262,7 +262,7 @@ void __cdecl callback_playerkey(int keyid, int index, qr2_buffer_t outbuf, void*
262262
263263void __cdecl callback_teamkey (int keyid, int index, qr2_buffer_t outbuf, void * userdata)
264264{
265- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
265+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
266266 if (!pServer)
267267 return ;
268268
@@ -290,7 +290,7 @@ void __cdecl callback_keylist(qr2_key_type keytype, qr2_keybuffer_t keybuffer, v
290290{
291291 if (!userdata)
292292 return ;
293- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
293+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
294294 CGameSpy_QR2* pQR2 = pServer->QR2 ();
295295 if (!pQR2)
296296 return ;
@@ -375,7 +375,7 @@ int __cdecl callback_count(qr2_key_type keytype, void* userdata)
375375{
376376 if (!userdata)
377377 return 0 ;
378- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
378+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
379379 switch (keytype)
380380 {
381381 case key_player: { return pServer->GetPlayersCount ();
@@ -405,7 +405,7 @@ int __cdecl callback_count(qr2_key_type keytype, void* userdata)
405405void __cdecl callback_adderror (qr2_error_t error, gsi_char* errmsg, void * userdata)
406406{
407407 Msg (" ! Error while adding this server to master list ->%s." , errmsg);
408- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
408+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
409409 if (pServer)
410410 pServer->OnError_Add (error);
411411};
@@ -416,7 +416,7 @@ void __cdecl callback_cm(char* data, int len, void* userdata){};
416416void __cdecl callback_deny_ip (void * userdata, unsigned int sender_ip, int * result)
417417{
418418 *result = 0 ;
419- IPureServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
419+ IPureServer* pServer = static_cast <xrGameSpyServer *>(userdata);
420420 if (pServer && pServer->IsPlayerIPDenied (static_cast <u32 >(sender_ip)))
421421 {
422422 *result = 1 ;
@@ -425,7 +425,7 @@ void __cdecl callback_deny_ip(void* userdata, unsigned int sender_ip, int* resul
425425/*
426426void __cdecl callback_public(unsigned int ip, unsigned short port, void* userdata)
427427{
428- xrGameSpyServer* pServer = static_cast<CGameSpy_QR2::Context *>(userdata)->GSServer ;
428+ xrGameSpyServer* pServer = static_cast<xrGameSpyServer *>(userdata);
429429 if (!pServer)
430430 {
431431 VERIFY2(pServer, "xrGameSpyServer is NULL");
0 commit comments