tSound modules are now not initialised for running dopewars with -v or -h flags… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 137f2f5d8c2ca095c2db249b5c82d44f9d3089f4 | |
parent b2a56ff8ab73d07c0066f9571dbf5cccadb5cf40 | |
Author: Ben Webb <[email protected]> | |
Date: Mon, 13 May 2002 15:32:21 +0000 | |
Sound modules are now not initialised for running dopewars with -v or | |
-h flags. | |
Diffstat: | |
M src/dopewars.c | 2 +- | |
M src/winmain.c | 1 - | |
2 files changed, 1 insertion(+), 2 deletions(-) | |
--- | |
diff --git a/src/dopewars.c b/src/dopewars.c | |
t@@ -2704,6 +2704,7 @@ void GeneralStartup(int argc, char *argv[]) | |
if (!WantVersion && !WantHelp && !AIPlayer && !WantConvert && !WantAdmin) { | |
OpenHighScoreFile(); | |
+ SoundInit(); | |
} else { | |
DropPrivileges(); | |
} | |
t@@ -2847,7 +2848,6 @@ int main(int argc, char *argv[]) | |
bindtextdomain(PACKAGE, LOCALEDIR); | |
textdomain(PACKAGE); | |
#endif | |
- SoundInit(); | |
WantUTF8Errors(FALSE); | |
GeneralStartup(argc, argv); | |
OpenLog(); | |
diff --git a/src/winmain.c b/src/winmain.c | |
t@@ -262,7 +262,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevI… | |
while (split[argc] && split[argc][0]) | |
argc++; | |
- SoundInit(); | |
GeneralStartup(argc, split); | |
OpenLog(); | |
if (WantVersion || WantHelp) { |