tSound modules are now not initialised for running dopewars with -v or -h flags. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 137f2f5d8c2ca095c2db249b5c82d44f9d3089f4
(DIR) parent b2a56ff8ab73d07c0066f9571dbf5cccadb5cf40
(HTM) Author: Ben Webb <ben@salilab.org>
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(-)
---
(DIR) 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();
(DIR) diff --git a/src/winmain.c b/src/winmain.c
t@@ -262,7 +262,6 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
while (split[argc] && split[argc][0])
argc++;
- SoundInit();
GeneralStartup(argc, split);
OpenLog();
if (WantVersion || WantHelp) {