Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1821 in orxonox.OLD for orxonox/branches/bensch/orxonox_gui_exec.c


Ignore:
Timestamp:
Apr 14, 2004, 2:42:02 AM (20 years ago)
Author:
bensch
Message:

orxonox/branches/bensch: volume sliders implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/bensch/orxonox_gui_exec.c

    r1820 r1821  
    5656char * orxonox_flags_text (struct settings *orxonox_settings, char *exec_flags_text)
    5757{
     58  char temp [50];
    5859  bzero(exec_flags_text, 1);
    5960  strcat(exec_flags_text, "orxonox ");
     
    6667  if(!orxonox_settings->audio_enable_sound)
    6768    strcat(exec_flags_text, "--disable_audio ");
    68   /*  if(orxonox_settings->audio_music_volume <> 80)
     69  if(orxonox_settings->audio_music_volume != 80)
    6970    {
    7071      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);
    7274    }
    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    }
    7781  return (exec_flags_text);
    7882}
Note: See TracChangeset for help on using the changeset viewer.