rail_gui.c
changeset 3132 4ecd7f40fc76
parent 2952 58522ed8f0f1
child 3157 3f35e2d9c8e3
equal deleted inserted replaced
3131:b56514952c8c 3132:4ecd7f40fc76
   289 	if (HASBIT(w->disabled_state, 16)) return;
   289 	if (HASBIT(w->disabled_state, 16)) return;
   290 	SetWindowDirty(w);
   290 	SetWindowDirty(w);
   291 	SndPlayFx(SND_15_BEEP);
   291 	SndPlayFx(SND_15_BEEP);
   292 
   292 
   293 	TOGGLEBIT(w->click_state, 16);
   293 	TOGGLEBIT(w->click_state, 16);
   294 	_remove_button_clicked = HASBIT(w->click_state, 16) != 0;
   294 	_remove_button_clicked = HASBIT(w->click_state, 16);
   295 	SetSelectionRed(HASBIT(w->click_state, 16) != 0);
   295 	SetSelectionRed(HASBIT(w->click_state, 16));
   296 
   296 
   297 	// handle station builder
   297 	// handle station builder
   298 	if (HASBIT(w->click_state, 16)) {
   298 	if (HASBIT(w->click_state, 16)) {
   299 		if (_remove_button_clicked) {
   299 		if (_remove_button_clicked) {
   300 			SetTileSelectSize(1, 1);
   300 			SetTileSelectSize(1, 1);