(svn r3958) Change HASBIT() to return 0/1 instead of 0/value of tested bit. Backport of r3747 from trunk

This commit is contained in:
Darkvater
2006-03-18 15:31:34 +00:00
parent 300aba48cc
commit 2be4b388ec
6 changed files with 8 additions and 8 deletions

2
rail.h
View File

@@ -552,7 +552,7 @@ static inline SignalType GetSignalType(TileIndex tile, Track track)
static inline bool HasSemaphores(TileIndex tile, Track track)
{
assert(IsValidTrack(track));
return (_m[tile].m4 & SIG_SEMAPHORE_MASK);
return (_m[tile].m4 & SIG_SEMAPHORE_MASK) != 0;
}
/**