Ignore:
Timestamp:
09/22/2008 07:31:11 PM (4 years ago)
Author:
guyru
Message:

add upper-section bonus immediately when reaching 63 points

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/MainFrame.cpp

    r154 r155  
    11001100        tempstr.Printf(wxT("%i"),upperscore); 
    11011101        ((wxTextCtrl*) FindWindow(ID_UPPERSECTIONTOTAL)) -> SetValue(tempstr); 
     1102        if (upperscore >= 63) { 
     1103                ((wxTextCtrl*) FindWindow(ID_BONUS))->SetValue(wxT("35")); 
     1104        } else { 
     1105                // this is needed in case of an undo 
     1106                ((wxTextCtrl*) FindWindow(ID_BONUS))->SetValue(wxT("")); 
     1107        } 
    11021108 
    11031109        for (int i = ID_THREEOFAKINDTEXT; i<=ID_YAHTZEEBONUSTEXT; i++) { 
Note: See TracChangeset for help on using the changeset viewer.