(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT

This commit is contained in:
tron
2005-11-14 08:09:57 +00:00
parent b34de09e62
commit 524fd25cbd
20 changed files with 72 additions and 76 deletions

View File

@@ -159,12 +159,11 @@ static void BuildRoadClick_Tunnel(Window *w)
static void BuildRoadClick_Remove(Window *w)
{
if (w->disabled_state & (1<<11))
return;
if (HASBIT(w->disabled_state, 11)) return;
SetWindowDirty(w);
SndPlayFx(SND_15_BEEP);
w->click_state ^= (1 << 11);
SetSelectionRed((w->click_state & (1 << 11)) != 0);
TOGGLEBIT(w->click_state, 11);
SetSelectionRed(HASBIT(w->click_state, 11) != 0);
}
static void BuildRoadClick_Landscaping(Window *w)