fix save on context menu, fix cotext menu without selected item

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2267 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2006-05-10 02:45:45 +00:00
parent efe118cb22
commit 36416234fb
1 changed files with 2 additions and 2 deletions

View File

@ -1310,7 +1310,7 @@ void Hud_Save(char *fname)
{ {
int i; int i;
qhandle_t handle; qhandle_t handle;
if (!*fname) if (!fname || !*fname)
fname = DEFAULTHUDNAME; fname = DEFAULTHUDNAME;
if (FS_Open(fname, &handle, 2)<0) if (FS_Open(fname, &handle, 2)<0)
{ {
@ -1614,7 +1614,7 @@ void UI_KeyPress(int key, int mx, int my)
if (context) if (context)
{ {
if (key != K_MOUSE1 || currentitem < 0) if (key != K_MOUSE1)
{ {
context = false; context = false;
return; return;