@@ -31,7 +31,7 @@ void __cdecl callback_serverkey(int keyid, qr2_buffer_t outbuf, void* userdata)
31
31
{
32
32
if (!userdata)
33
33
return ;
34
- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
34
+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
35
35
if (!pServer)
36
36
return ;
37
37
CGameSpy_QR2* pQR2 = pServer->QR2 ();
@@ -195,7 +195,7 @@ void __cdecl callback_serverkey(int keyid, qr2_buffer_t outbuf, void* userdata)
195
195
196
196
void __cdecl callback_playerkey (int keyid, int index, qr2_buffer_t outbuf, void * userdata)
197
197
{
198
- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
198
+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
199
199
if (!pServer)
200
200
return ;
201
201
if (u32 (index) >= pServer->GetClientsCount ())
@@ -262,7 +262,7 @@ void __cdecl callback_playerkey(int keyid, int index, qr2_buffer_t outbuf, void*
262
262
263
263
void __cdecl callback_teamkey (int keyid, int index, qr2_buffer_t outbuf, void * userdata)
264
264
{
265
- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
265
+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
266
266
if (!pServer)
267
267
return ;
268
268
@@ -290,7 +290,7 @@ void __cdecl callback_keylist(qr2_key_type keytype, qr2_keybuffer_t keybuffer, v
290
290
{
291
291
if (!userdata)
292
292
return ;
293
- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
293
+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
294
294
CGameSpy_QR2* pQR2 = pServer->QR2 ();
295
295
if (!pQR2)
296
296
return ;
@@ -375,7 +375,7 @@ int __cdecl callback_count(qr2_key_type keytype, void* userdata)
375
375
{
376
376
if (!userdata)
377
377
return 0 ;
378
- xrGameSpyServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
378
+ xrGameSpyServer* pServer = static_cast <xrGameSpyServer *>(userdata);
379
379
switch (keytype)
380
380
{
381
381
case key_player: { return pServer->GetPlayersCount ();
@@ -405,7 +405,7 @@ int __cdecl callback_count(qr2_key_type keytype, void* userdata)
405
405
void __cdecl callback_adderror (qr2_error_t error, gsi_char* errmsg, void * userdata)
406
406
{
407
407
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);
409
409
if (pServer)
410
410
pServer->OnError_Add (error);
411
411
};
@@ -416,7 +416,7 @@ void __cdecl callback_cm(char* data, int len, void* userdata){};
416
416
void __cdecl callback_deny_ip (void * userdata, unsigned int sender_ip, int * result)
417
417
{
418
418
*result = 0 ;
419
- IPureServer* pServer = static_cast <CGameSpy_QR2::Context *>(userdata)-> GSServer ;
419
+ IPureServer* pServer = static_cast <xrGameSpyServer *>(userdata);
420
420
if (pServer && pServer->IsPlayerIPDenied (static_cast <u32 >(sender_ip)))
421
421
{
422
422
*result = 1 ;
@@ -425,7 +425,7 @@ void __cdecl callback_deny_ip(void* userdata, unsigned int sender_ip, int* resul
425
425
/*
426
426
void __cdecl callback_public(unsigned int ip, unsigned short port, void* userdata)
427
427
{
428
- xrGameSpyServer* pServer = static_cast<CGameSpy_QR2::Context *>(userdata)->GSServer ;
428
+ xrGameSpyServer* pServer = static_cast<xrGameSpyServer *>(userdata);
429
429
if (!pServer)
430
430
{
431
431
VERIFY2(pServer, "xrGameSpyServer is NULL");
0 commit comments