Changeset 1821 in orxonox.OLD for orxonox/branches/bensch/orxonox_gui_exec.c
- Timestamp:
- Apr 14, 2004, 2:42:02 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/bensch/orxonox_gui_exec.c
r1820 r1821 56 56 char * orxonox_flags_text (struct settings *orxonox_settings, char *exec_flags_text) 57 57 { 58 char temp [50]; 58 59 bzero(exec_flags_text, 1); 59 60 strcat(exec_flags_text, "orxonox "); … … 66 67 if(!orxonox_settings->audio_enable_sound) 67 68 strcat(exec_flags_text, "--disable_audio "); 68 /* if(orxonox_settings->audio_music_volume <>80)69 if(orxonox_settings->audio_music_volume != 80) 69 70 { 70 71 strcat(exec_flags_text, "--music_volume="); 71 strcat(exec_flags_text, sprintf("%i ",(int *)orxonox_settings->audio_music_volume)); 72 sprintf(temp, "%i ", (int) orxonox_settings->audio_music_volume); 73 strcat(exec_flags_text, temp); 72 74 } 73 */ 74 if(orxonox_settings->audio_effects_volume) 75 strcat(exec_flags_text, "--effects_volume "); 76 75 if(orxonox_settings->audio_effects_volume != 80) 76 { 77 strcat(exec_flags_text, "--effects_volume= "); 78 sprintf(temp, "%i ", (int) orxonox_settings->audio_effects_volume); 79 strcat(exec_flags_text, temp); 80 } 77 81 return (exec_flags_text); 78 82 }
Note: See TracChangeset
for help on using the changeset viewer.