From 36416234fb13bae3632e27ad71781a6387a7d974 Mon Sep 17 00:00:00 2001 From: TimeServ Date: Wed, 10 May 2006 02:45:45 +0000 Subject: [PATCH] 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 --- plugins/hud/ui_sbar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hud/ui_sbar.c b/plugins/hud/ui_sbar.c index 9f4fb4612..18b05f7af 100644 --- a/plugins/hud/ui_sbar.c +++ b/plugins/hud/ui_sbar.c @@ -1310,7 +1310,7 @@ void Hud_Save(char *fname) { int i; qhandle_t handle; - if (!*fname) + if (!fname || !*fname) fname = DEFAULTHUDNAME; if (FS_Open(fname, &handle, 2)<0) { @@ -1614,7 +1614,7 @@ void UI_KeyPress(int key, int mx, int my) if (context) { - if (key != K_MOUSE1 || currentitem < 0) + if (key != K_MOUSE1) { context = false; return;