road_gui.c
changeset 1990 90eb49e87b90
parent 1977 4392ae3d8e31
child 2049 ad0d49c916d4
equal deleted inserted replaced
1989:2851dd2efb50 1990:90eb49e87b90
   157 {
   157 {
   158 	if (w->disabled_state & (1<<11))
   158 	if (w->disabled_state & (1<<11))
   159 		return;
   159 		return;
   160 	SetWindowDirty(w);
   160 	SetWindowDirty(w);
   161 	SndPlayFx(SND_15_BEEP);
   161 	SndPlayFx(SND_15_BEEP);
   162 	_thd.make_square_red = !!((w->click_state ^= (1 << 11)) & (1<<11));
   162 	w->click_state ^= (1 << 11);
   163 	MarkTileDirty(_thd.pos.x, _thd.pos.y);
   163 	SetSelectionRed((w->click_state & (1 << 11)) != 0);
   164 }
   164 }
   165 
   165 
   166 static void BuildRoadClick_Landscaping(Window *w)
   166 static void BuildRoadClick_Landscaping(Window *w)
   167 {
   167 {
   168 	ShowTerraformToolbar();
   168 	ShowTerraformToolbar();