X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=ecafc3b848cc3932394cf38ebf9184248b621782;hb=1cacebfb41c20889c904155001a5b88ace962348;hp=76ff5941d1545618b35b4f9d48c1d37d9d5be89d;hpb=d32496fdd3867910a188acba0ac132f66c99306c;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 76ff5941..ecafc3b8 100644 --- a/src/init.c +++ b/src/init.c @@ -115,7 +115,7 @@ void InitSound() { int i; - if (sound_status==SOUND_OFF) + if (sound_status == SOUND_OFF) return; #ifndef MSDOS @@ -126,7 +126,7 @@ void InitSound() return; } - if ((sound_device=open(sound_device_name,O_WRONLY))<0) + if ((sound_device = open(sound_device_name,O_WRONLY))<0) { Error(ERR_RETURN, "cannot open sound device - no sounds"); sound_status = SOUND_OFF; @@ -134,7 +134,7 @@ void InitSound() } close(sound_device); - sound_status=SOUND_AVAILABLE; + sound_status = SOUND_AVAILABLE; #ifdef VOXWARE sound_loops_allowed = TRUE; @@ -145,7 +145,7 @@ void InitSound() sound_loops_on = TRUE; #endif - for(i=0;i