equal
deleted
inserted
replaced
535 |
535 |
536 info = &_game_setting_info[btn]; // get information about the difficulty setting |
536 info = &_game_setting_info[btn]; // get information about the difficulty setting |
537 if (x >= 10) { |
537 if (x >= 10) { |
538 // Increase button clicked |
538 // Increase button clicked |
539 val = min(val + info->step, info->max); |
539 val = min(val + info->step, info->max); |
540 SETBIT(_difficulty_click_b, btn); |
540 SetBit(_difficulty_click_b, btn); |
541 } else { |
541 } else { |
542 // Decrease button clicked |
542 // Decrease button clicked |
543 val -= info->step; |
543 val -= info->step; |
544 val = max(val, info->min); |
544 val = max(val, info->min); |
545 SETBIT(_difficulty_click_a, btn); |
545 SetBit(_difficulty_click_a, btn); |
546 } |
546 } |
547 |
547 |
548 // save value in temporary variable |
548 // save value in temporary variable |
549 ((GDType*)&_opt_mod_temp.diff)[btn] = val; |
549 ((GDType*)&_opt_mod_temp.diff)[btn] = val; |
550 RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3); |
550 RaiseWindowWidget(w, _opt_mod_temp.diff_level + 3); |