X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fmenu%2Fmenu.qc;h=891235def666700cc2a0865d8809d9512a1b43ac;hb=93afc08b09294e6dea4d0c98ce5226fdee9d1c92;hp=fb6c4aeeda60a612cbe47ffe4c6804022b315c23;hpb=62d736d8c3a51baf5fa3a4265e39a2b773704a91;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index fb6c4aeed..891235def 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -50,7 +50,7 @@ void m_gamestatus() 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() @@ -73,7 +73,7 @@ void m_init() #endif // list all game dirs (TEST) - if (cvar("developer")) + if (cvar("developer") > 0) { for (int i = 0; ; ++i) { @@ -335,7 +335,8 @@ void drawBackground(string img, float a, string algn, float force1) 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)