From 0bc64d3518d13452ad1fc30b6ff815e7af997f16 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 11 Jul 2006 18:35:58 +0000 Subject: [PATCH] Minor fixes git-svn-id: https://svn.eduke32.com/eduke32@217 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamedef.c | 4 +++- polymer/eduke32/source/menus.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/gamedef.c b/polymer/eduke32/source/gamedef.c index 420445667..3b6f87559 100644 --- a/polymer/eduke32/source/gamedef.c +++ b/polymer/eduke32/source/gamedef.c @@ -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; } diff --git a/polymer/eduke32/source/menus.c b/polymer/eduke32/source/menus.c index f2ecab856..176acf76c 100644 --- a/polymer/eduke32/source/menus.c +++ b/polymer/eduke32/source/menus.c @@ -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;