src/settings.cpp
changeset 6950 14ecb0acdfb4
parent 6943 1914f26aee04
child 6956 3579bfc5157b
equal deleted inserted replaced
6949:5de26c8fe2ef 6950:14ecb0acdfb4
  1780 		if (sd->desc.proc != NULL) sd->desc.proc((int32)ReadValue(var, sd->save.conv));
  1780 		if (sd->desc.proc != NULL) sd->desc.proc((int32)ReadValue(var, sd->save.conv));
  1781 
  1781 
  1782 		InvalidateWindow(WC_GAME_OPTIONS, 0);
  1782 		InvalidateWindow(WC_GAME_OPTIONS, 0);
  1783 	}
  1783 	}
  1784 
  1784 
  1785 	return 0;
  1785 	return CommandCost();
  1786 }
  1786 }
  1787 
  1787 
  1788 /** Top function to save the new value of an element of the Patches struct
  1788 /** Top function to save the new value of an element of the Patches struct
  1789  * @param index offset in the SettingDesc array of the Patches struct which
  1789  * @param index offset in the SettingDesc array of the Patches struct which
  1790  * identifies the patch member we want to change
  1790  * identifies the patch member we want to change