rail_gui.c
changeset 1990 90eb49e87b90
parent 1981 de031d2aed47
child 2049 ad0d49c916d4
equal deleted inserted replaced
1989:2851dd2efb50 1990:90eb49e87b90
   286 	if (w->disabled_state & (1<<16))
   286 	if (w->disabled_state & (1<<16))
   287 		return;
   287 		return;
   288 	SetWindowDirty(w);
   288 	SetWindowDirty(w);
   289 	SndPlayFx(SND_15_BEEP);
   289 	SndPlayFx(SND_15_BEEP);
   290 
   290 
   291 	_thd.make_square_red = !!((w->click_state ^= (1 << 16)) & (1<<16));
   291 	w->click_state ^= (1 << 16);
   292 	MarkTileDirty(_thd.pos.x, _thd.pos.y);
       
   293 	_remove_button_clicked = (w->click_state & (1 << 16)) != 0;
   292 	_remove_button_clicked = (w->click_state & (1 << 16)) != 0;
       
   293 	SetSelectionRed((w->click_state & (1 << 16)) != 0);
   294 
   294 
   295 	// handle station builder
   295 	// handle station builder
   296 	if( w->click_state & (1 << 16) )
   296 	if( w->click_state & (1 << 16) )
   297 	{
   297 	{
   298 		if(_remove_button_clicked)
   298 		if(_remove_button_clicked)