road_gui.c
changeset 514 2de07a146b19
parent 507 04b5403aaf6b
child 541 625227bb2a3d
equal deleted inserted replaced
513:a6eaa0d97d8d 514:2de07a146b19
   159 	if (w->disabled_state & (1<<12))
   159 	if (w->disabled_state & (1<<12))
   160 		return;
   160 		return;
   161 	SetWindowDirty(w);
   161 	SetWindowDirty(w);
   162 	SndPlayFx(0x13);
   162 	SndPlayFx(0x13);
   163 	_thd.make_square_red = !!((w->click_state ^= (1 << 12)) & (1<<12));
   163 	_thd.make_square_red = !!((w->click_state ^= (1 << 12)) & (1<<12));
       
   164 	MarkTileDirty(_thd.pos.x, _thd.pos.y);
   164 }
   165 }
   165 
   166 
   166 static void BuildRoadClick_Purchase(Window *w)
   167 static void BuildRoadClick_Purchase(Window *w)
   167 {
   168 {
   168 	HandlePlacePushButton(w, 13, 0x12B8, 1, PlaceProc_BuyLand);
   169 	HandlePlacePushButton(w, 13, 0x12B8, 1, PlaceProc_BuyLand);