cwesnoth: Use setlocal to reliably restore env vars

Thanks to aquileia for the tip.
This commit is contained in:
Ignacio R. Morelle 2015-04-26 05:00:33 -04:00
parent 9e2513183d
commit bbd2ffd64f

View File

@ -6,6 +6,8 @@ rem Usage:
rem cwesnoth <command line>
rem
setlocal
rem Disable stdout.txt/stderr.txt redirection in SDLmain.
set SDL_STDIO_REDIRECT=0
@ -16,6 +18,4 @@ set OMP_WAIT_POLICY=PASSIVE
wesnoth --wconsole %*
rem Drop our custom environment for future runs on the same session.
set SDL_STDIO_REDIRECT=
set OMP_WAIT_POLICY=
endlocal