It is currently Mon May 20, 2024 6:09 am
davidc538 wrote:marking the function as static is quite easy but how do you make sure it only gets registered once?
bool m_bRegisteredStaticThink = false;
void RegisterThink()
{
if (!m_bRegisteredStaticThink)
register think blah blah
m_bRegisteredStaticThink = true;
}
Users browsing this forum: No registered users