src/newgrf_gui.cpp
changeset 6984 045168d13eef
parent 6703 9ddfcb1849e4
child 7279 cbc7fe26facf
equal deleted inserted replaced
6983:df590b5a26c2 6984:045168d13eef
   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;