[HELP] why...

Posts 15 of 5 · Page 1 of 1
[HELP] why...
Code:
bool __cdecl cEngine::IsVisible( D3DXVECTOR3 Point )
{
	IntersectQuery iQuery;
	IntersectInfo iInfo;

	memset( &iQuery, 0, sizeof(iQuery) );

	iQuery.Start  = esp->local.CameraPos; 
	iQuery.End    = Point;

	return !engine->GetLTBase()->IntersectSegment( iQuery, &iInfo );
}
1. Why would you set iQuery to 0 by memset if it already is 0 because it hasnt been given a value?
2. What does the __cdecl mean when the function is declared?
yeah we all start learning to hack somehow. if i wasnt trying to learn then i wouldnt be asking this question now would i?
I think there are a few default values or something for IntersectQuery you need to clear.
Because
1. No, it's set to random garbage from the stack in non-debug builds.
2. __cdecl is the calling convention. Just has to do with how parameters are passed.
Posts 15 of 5 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?