equal
deleted
inserted
replaced
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 |