gamestatus = 0;
if (isserver()) gamestatus |= GAME_ISSERVER;
if (clientstate() == CS_CONNECTED || isdemo()) gamestatus |= GAME_CONNECTED;
- if (cvar("developer")) gamestatus |= GAME_DEVELOPER;
+ if (cvar("developer") > 0) gamestatus |= GAME_DEVELOPER;
}
void m_init()
#endif
// list all game dirs (TEST)
- if (cvar("developer"))
+ if (cvar("developer") > 0)
{
for (int i = 0; ; ++i)
{
if (main.mainNexposee.ModalController_state == 0) return;
vector v = '0 0 0';
int scalemode = SCALEMODE_CROP;
- for (int i = 0, l = 0; i < strlen(algn); ++i)
+ int len = strlen(algn);
+ for (int i = 0, l = 0; i < len; ++i)
{
string c = substring(algn, i, 1);
switch (c)