summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2012-10-25 17:38:12 +0000
committerterkhen <terkhen@openttd.org>2012-10-25 17:38:12 +0000
commit9b5ff794c7048fb2227b50264911210c2328cea4 (patch)
treef8e679edb21306233699ea3710859fb15745bf54 /src
parent6094275312e507f15b376ea7d6b0ccca83e1b4dd (diff)
downloadopenttd-9b5ff794c7048fb2227b50264911210c2328cea4.tar.xz
(svn r24626) -Fix [FS#5432]: MSVC 2010 warnings.
Diffstat (limited to 'src')
-rw-r--r--src/group_gui.cpp2
-rw-r--r--src/road_cmd.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index e9817651c..a8aca15ad 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -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;
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index 57f550765..ad7579a19 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -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;
}
/**