bool InGame(int Variavel)
{
return((*(PBYTE)GameStatus == 1) && Variavel);
}
void Funções(LPDIRECT3DDEVICE9 pDevice)
{
if( InGame(MinhaFunção) )
{
...
}
}
void Funções(LPDIRECT3DDEVICE9 pDevice)
{
if((*(BYTE *)GameStatus == 1))
{
// todas as funções
}
}
