equal
deleted
inserted
replaced
157 HandlePlacePushButton(w, 10, SPR_CURSOR_ROAD_TUNNEL, 3, PlaceRoad_Tunnel); |
157 HandlePlacePushButton(w, 10, SPR_CURSOR_ROAD_TUNNEL, 3, PlaceRoad_Tunnel); |
158 } |
158 } |
159 |
159 |
160 static void BuildRoadClick_Remove(Window *w) |
160 static void BuildRoadClick_Remove(Window *w) |
161 { |
161 { |
162 if (w->disabled_state & (1<<11)) |
162 if (HASBIT(w->disabled_state, 11)) return; |
163 return; |
|
164 SetWindowDirty(w); |
163 SetWindowDirty(w); |
165 SndPlayFx(SND_15_BEEP); |
164 SndPlayFx(SND_15_BEEP); |
166 w->click_state ^= (1 << 11); |
165 TOGGLEBIT(w->click_state, 11); |
167 SetSelectionRed((w->click_state & (1 << 11)) != 0); |
166 SetSelectionRed(HASBIT(w->click_state, 11) != 0); |
168 } |
167 } |
169 |
168 |
170 static void BuildRoadClick_Landscaping(Window *w) |
169 static void BuildRoadClick_Landscaping(Window *w) |
171 { |
170 { |
172 ShowTerraformToolbar(); |
171 ShowTerraformToolbar(); |