From 993fce0352c9dbf82f6575c0beadbe31179f790d Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 6 Jan 2008 04:07:21 +0000 Subject: [PATCH] Restores pathsearchmode after not finding a file. Fixes user map menu not working with broken DEFs. (hunter_rus) git-svn-id: https://svn.eduke32.com/eduke32@596 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/defs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/polymer/build/src/defs.c b/polymer/build/src/defs.c index 111c76fa8..ce46ff517 100644 --- a/polymer/build/src/defs.c +++ b/polymer/build/src/defs.c @@ -1337,6 +1337,7 @@ case T_REDPAL: case T_BLUEPAL: case T_BROWNPAL: case T_GREYPAL: case T_GREENPAL: if (!kzfindfile(buf)) { initprintf("Error: file '%s' does not exist\n",fn); + pathsearchmode = i; break; } } @@ -1396,6 +1397,7 @@ case T_REDPAL: case T_BLUEPAL: case T_BROWNPAL: case T_GREYPAL: case T_GREENPAL: if (!kzfindfile(buf)) { initprintf("Error: file '%s' does not exist\n",fn); + pathsearchmode = i; break; } }