(svn r3747) Change HASBIT() to return 0/1 instead of 0/value of tested bit, because the name suggests it does the former and current behavior broke in some places in very subtle ways (for example HASBIT(x, 0) != HASBIT(y, 1) doesn't work, returning a bool after HASBIT(x, 9) neither)

This commit is contained in:
tron
2006-03-03 19:42:09 +00:00
parent eeb2b7cd11
commit d851781663
6 changed files with 8 additions and 8 deletions

View File

@@ -158,7 +158,7 @@ static void BuildRoadClick_Remove(Window *w)
SetWindowDirty(w);
SndPlayFx(SND_15_BEEP);
TOGGLEBIT(w->click_state, 11);
SetSelectionRed(HASBIT(w->click_state, 11) != 0);
SetSelectionRed(HASBIT(w->click_state, 11));
}
static void BuildRoadClick_Landscaping(Window *w)