#define ALLOW_NONE 0x00
#define ALLOW_READ 0x01
#define ALLOW_WRITE 0x02
#define ALLOW_EXEC 0x04
int permission = user.isLoggedIn ? ALLOW_READ | ALLOW_NONE;
if (user.isModerator) permission |= ALLOW_WRITE;
if (user.isAdmin) permission |= ALLOW_EXEC | ALLOW_WRITE;
IT's hard to say without knowing what info.type is, or auto is... or m_guidancePlugin for that matter...
Guidance::Type type = Guidance::StraightAB;
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.