equal
deleted
inserted
replaced
294 SetWindowWidgetDisabledState(w, SNGRFS_APPLY_CHANGES, !WP(w, newgrf_d).editable); |
294 SetWindowWidgetDisabledState(w, SNGRFS_APPLY_CHANGES, !WP(w, newgrf_d).editable); |
295 } |
295 } |
296 |
296 |
297 |
297 |
298 /** Callback function for the newgrf 'apply changes' confirmation window |
298 /** Callback function for the newgrf 'apply changes' confirmation window |
299 * @param yes_clicked boolean value, true when yes was clicked, false otherwise */ |
299 * @param w Window which is calling this callback |
|
300 * @param confirmed boolean value, true when yes was clicked, false otherwise |
|
301 */ |
300 static void NewGRFConfirmationCallback(Window *w, bool confirmed) |
302 static void NewGRFConfirmationCallback(Window *w, bool confirmed) |
301 { |
303 { |
302 if (confirmed) { |
304 if (confirmed) { |
303 newgrf_d *nd = &WP(w, newgrf_d); |
305 newgrf_d *nd = &WP(w, newgrf_d); |
304 GRFConfig *c; |
306 GRFConfig *c; |