Minor fixes

git-svn-id: https://svn.eduke32.com/eduke32@217 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-07-11 18:35:58 +00:00
parent 2142db118e
commit 0bc64d3518
2 changed files with 4 additions and 2 deletions

View file

@ -1309,8 +1309,10 @@ char AddGameVar(char *pszLabel, long lValue, unsigned long dwFlags)
aGameVars[i].dwFlags=dwFlags;
aGameVars[i].lValue=lValue;
if(aDefaultGameVars[i].szLabel == NULL)
{
aDefaultGameVars[i].szLabel=Bcalloc(MAXVARLABEL,sizeof(char));
Bstrcpy(aDefaultGameVars[i].szLabel,pszLabel);
Bstrcpy(aDefaultGameVars[i].szLabel,pszLabel);
}
aDefaultGameVars[i].dwFlags=dwFlags;
aDefaultGameVars[i].lValue=lValue;
}

View file

@ -592,7 +592,7 @@ void menus(void)
vscrn();
if(KB_KeyPressed(sc_Q) && current_menu >= 0 && (current_menu > 502 || current_menu < 500) && current_menu != 20003 &&
current_menu != 20005 && current_menu != 210 && current_menu != 603)
current_menu != 20005 && current_menu != 210 && current_menu != 603 && current_menu != 10001 && !(current_menu > 359 && current_menu < 370))
{
last_menu = current_menu;
last_probey = probey;