mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r24626) -Fix [FS#5432]: MSVC 2010 warnings.
This commit is contained in:
parent
6094275312
commit
9b5ff794c7
|
@ -511,7 +511,7 @@ public:
|
|||
|
||||
y1 += this->tiny_step_height;
|
||||
}
|
||||
if (this->group_sb->GetPosition() + this->group_sb->GetCapacity() > this->groups.Length()) {
|
||||
if ((uint)this->group_sb->GetPosition() + this->group_sb->GetCapacity() > this->groups.Length()) {
|
||||
DrawGroupInfo(y1, r.left, r.right, NEW_GROUP);
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -795,7 +795,7 @@ do_clear:;
|
|||
static bool CanConnectToRoad(TileIndex tile, RoadType rt, DiagDirection dir)
|
||||
{
|
||||
RoadBits bits = GetAnyRoadBits(tile + TileOffsByDiagDir(dir), rt, false);
|
||||
return (bits & DiagDirToRoadBits(ReverseDiagDir(dir)));
|
||||
return (bits & DiagDirToRoadBits(ReverseDiagDir(dir))) != 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue