mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
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:
parent
efe118cb22
commit
36416234fb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue