From 804805d35a87c2acc9425d1762ad26b1ba2ec9ac Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Wed, 29 Jul 2015 09:04:03 -0600 Subject: Silenced and fixed many warning messages across multiple files. --- src/Tracer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Tracer.cpp') diff --git a/src/Tracer.cpp b/src/Tracer.cpp index b54a50798..17f1bdfbc 100644 --- a/src/Tracer.cpp +++ b/src/Tracer.cpp @@ -264,7 +264,7 @@ bool cTracer::Trace(const Vector3f & a_Start, const Vector3f & a_Direction, int int Normal = GetHitNormal(a_Start, End, pos); if (Normal > 0) { - HitNormal = m_NormalTable()[Normal - 1]; + HitNormal = m_NormalTable()[static_cast(Normal - 1)]; } return true; } @@ -349,7 +349,7 @@ int cTracer::intersect3D_SegmentPlane(const Vector3f & a_Origin, const Vector3f int cTracer::GetHitNormal(const Vector3f & start, const Vector3f & end, const Vector3i & a_BlockPos) { Vector3i SmallBlockPos = a_BlockPos; - char BlockID = m_World->GetBlock(a_BlockPos.x, a_BlockPos.y, a_BlockPos.z); + BLOCKTYPE BlockID = static_cast(m_World->GetBlock(a_BlockPos.x, a_BlockPos.y, a_BlockPos.z)); if ((BlockID == E_BLOCK_AIR) || IsBlockWater(BlockID)) { -- cgit v1.2.3