1 diff -Nur aMule-2.2.6-orig/src/Preferences.cpp aMule-2.2.6/src/Preferences.cpp
2 --- aMule-2.2.6-orig/src/Preferences.cpp 2009-03-28 20:29:59.000000000 +0100
3 +++ aMule-2.2.6/src/Preferences.cpp 2010-03-08 16:07:31.000000000 +0100
5 // Kry note: of course, any leecher mod will be banned asap.
6 void CPreferences::CheckUlDlRatio()
8 - // Backwards compatibility
9 - if ( s_maxupload == 0xFFFF )
10 - s_maxupload = UNLIMITED;
12 - // Backwards compatibility
13 - if ( s_maxdownload == 0xFFFF )
14 - s_maxdownload = UNLIMITED;
16 - if ( s_maxupload == UNLIMITED )
19 - // Enforce the limits
20 - if ( s_maxupload < 4 ) {
21 - if ( ( s_maxupload * 3 < s_maxdownload ) || ( s_maxdownload == 0 ) )
22 - s_maxdownload = s_maxupload * 3 ;
23 - } else if ( s_maxupload < 10 ) {
24 - if ( ( s_maxupload * 4 < s_maxdownload ) || ( s_maxdownload == 0 ) )
25 - s_maxdownload = s_maxupload * 4;
27 + s_maxdownload = UNLIMITED;
31 diff -Nur aMule-2.2.6-orig/src/PrefsUnifiedDlg.cpp aMule-2.2.6/src/PrefsUnifiedDlg.cpp
32 --- aMule-2.2.6-orig/src/PrefsUnifiedDlg.cpp 2009-03-28 20:29:59.000000000 +0100
33 +++ aMule-2.2.6/src/PrefsUnifiedDlg.cpp 2010-03-08 18:22:52.000000000 +0100
34 @@ -1087,25 +1087,6 @@
36 void PrefsUnifiedDlg::OnRateLimitChanged( wxSpinEvent& event )
38 - // Here we do immediate sainity checking of the up/down ratio,
39 - // so that the user can see if his choice is illegal
41 - // We only do checks if the rate is limited
42 - if ( event.GetPosition() != (int)UNLIMITED ) {
43 - wxSpinCtrl* dlrate = CastChild( IDC_MAXDOWN, wxSpinCtrl );
45 - if ( event.GetPosition() < 4 ) {
46 - if ( ( event.GetPosition() * 3 < dlrate->GetValue() ) ||
47 - ( dlrate->GetValue() == (int)UNLIMITED ) ) {
48 - dlrate->SetValue( event.GetPosition() * 3 );
50 - } else if ( event.GetPosition() < 10 ) {
51 - if ( ( event.GetPosition() * 4 < dlrate->GetValue() ) ||
52 - ( dlrate->GetValue() == (int)UNLIMITED ) ) {
53 - dlrate->SetValue( event.GetPosition() * 4 );