Question about source--CPIFirstLogin::Handle
Posted: Tue Aug 10, 2004 8:27 pm
I admit there are still many things about C++ that I don't quite have a handle on yet. I'm trying to understand what's going on in this section of code, so please pardon me if I sound ignorant.
At the beginning of CPIFirstLogin::Handle (in CPacketReceive.cpp), there is a declaration of a local ACCOUNTSBLOCK structure:
It is populated with a call to Accounts->GetAccountByName
Later on, the wFlags member of this structure is modified. However, after that, it appears that the contents of the structure are never written back anywhere:
Is there some kind of C++ magic going on that I don't understand or is this something that just hasn't been implemented yet?
Thanks for the help!
...Artomegus
At the beginning of CPIFirstLogin::Handle (in CPacketReceive.cpp), there is a declaration of a local ACCOUNTSBLOCK structure:
Code: Select all
ACCOUNTSBLOCK actbTemp;
Later on, the wFlags member of this structure is modified. However, after that, it appears that the contents of the structure are never written back anywhere:
Code: Select all
...
actbTemp.wFlags |= AB_FLAGS_ONLINE;
UI16 servcount = cwmWorldState->ServerData()->ServerCount();
CPGameServerList toSend( servcount );
for( UI16 i = 0; i < servcount; ++i )
{
physicalServer *sData = cwmWorldState->ServerData()->ServerEntry( i );
toSend.AddServer( i, sData );
}
tSock->Send( &toSend );
}
CPEnableClientFeatures ii;
tSock->Send( &ii );
return true;
Thanks for the help!
...Artomegus