diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 827f493b1..7c5aef985 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -2376,7 +2376,15 @@ static const char *locateWad(void) I_OutputMsg("RINGRACERSWADDIR"); // does RINGRACERSWADDIR exist? - if (((envstr = I_GetEnv("RINGRACERSWADDIR")) != NULL) && isWadPathOk(envstr)) + +#ifdef DEVELOP + if ((envstr = I_GetEnv("DEVELOPRRWADDIR")) == NULL) +#endif + { + envstr = I_GetEnv("RINGRACERSWADDIR"); + } + + if ((envstr != NULL) && isWadPathOk(envstr)) return envstr; #ifndef NOCWD