settings_gui.c
changeset 2817 58dcead3f545
parent 2776 a562819bff12
child 2916 8f1aa489701f
equal deleted inserted replaced
2816:2b74221ae24c 2817:58dcead3f545
    80 	FOR_ALL_VEHICLES(v) {
    80 	FOR_ALL_VEHICLES(v) {
    81 		if (v->type == VEH_Road) return true;
    81 		if (v->type == VEH_Road) return true;
    82 	}
    82 	}
    83 	return false;
    83 	return false;
    84 }
    84 }
       
    85 
       
    86 
       
    87 static void ShowCustCurrency(void);
    85 
    88 
    86 static void GameOptionsWndProc(Window *w, WindowEvent *e)
    89 static void GameOptionsWndProc(Window *w, WindowEvent *e)
    87 {
    90 {
    88 	switch (e->event) {
    91 	switch (e->event) {
    89 	case WE_PAINT: {
    92 	case WE_PAINT: {
  1504 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
  1507 	WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET | WDF_UNCLICK_BUTTONS,
  1505 	_cust_currency_widgets,
  1508 	_cust_currency_widgets,
  1506 	CustCurrencyWndProc,
  1509 	CustCurrencyWndProc,
  1507 };
  1510 };
  1508 
  1511 
  1509 void ShowCustCurrency(void)
  1512 static void ShowCustCurrency(void)
  1510 {
  1513 {
  1511 	_str_separator[0] = _custom_currency.separator;
  1514 	_str_separator[0] = _custom_currency.separator;
  1512 	_str_separator[1] = '\0';
  1515 	_str_separator[1] = '\0';
  1513 
  1516 
  1514 	DeleteWindowById(WC_CUSTOM_CURRENCY, 0);
  1517 	DeleteWindowById(WC_CUSTOM_CURRENCY, 0);