equal
deleted
inserted
replaced
843 /* Show the correct currency-translated value */ |
843 /* Show the correct currency-translated value */ |
844 if (sd->desc.flags & SGF_CURRENCY) value *= _currency->rate; |
844 if (sd->desc.flags & SGF_CURRENCY) value *= _currency->rate; |
845 |
845 |
846 WP(w,def_d).data_3 = btn; |
846 WP(w,def_d).data_3 = btn; |
847 SetDParam(0, value); |
847 SetDParam(0, value); |
848 ShowQueryString(STR_CONFIG_PATCHES_INT32, STR_CONFIG_PATCHES_QUERY_CAPT, 10, 100, WC_GAME_OPTIONS, 0, CS_NUMERAL); |
848 ShowQueryString(STR_CONFIG_PATCHES_INT32, STR_CONFIG_PATCHES_QUERY_CAPT, 10, 100, w, CS_NUMERAL); |
849 } |
849 } |
850 } |
850 } |
851 |
851 |
852 break; |
852 break; |
853 } |
853 } |
1059 } |
1059 } |
1060 break; |
1060 break; |
1061 } |
1061 } |
1062 |
1062 |
1063 if (len != 0) { |
1063 if (len != 0) { |
1064 WP(w,def_d).data_2 = line; |
1064 WP(w, def_d).data_2 = line; |
1065 ShowQueryString( |
1065 ShowQueryString(str, STR_CURRENCY_CHANGE_PARAMETER, len + 1, 250, w, afilter); |
1066 str, |
|
1067 STR_CURRENCY_CHANGE_PARAMETER, |
|
1068 len + 1, // maximum number of characters OR |
|
1069 250, // characters up to this width pixels, whichever is satisfied first |
|
1070 w->window_class, |
|
1071 w->window_number, afilter); |
|
1072 } |
1066 } |
1073 |
1067 |
1074 w->flags4 |= 5 << WF_TIMEOUT_SHL; |
1068 w->flags4 |= 5 << WF_TIMEOUT_SHL; |
1075 SetWindowDirty(w); |
1069 SetWindowDirty(w); |
1076 break; |
1070 break; |