1
0
forked from 0ad/0ad

Fixed some compilation warnings

This was SVN commit r10710.
This commit is contained in:
vts 2011-12-11 02:11:05 +00:00
parent e4f69a2ffb
commit 46a09ced71
3 changed files with 4 additions and 4 deletions

View File

@ -474,8 +474,8 @@ void CTexturedLineRData::Update()
{
u16 index1Prev = vertices.size() - 4; // index of the vertex1 in the previous iteration (BR of this quad)
u16 index2Prev = vertices.size() - 3; // index of the vertex2 in the previous iteration (BL of this quad)
ENSURE(index1Prev >= 0 && index1Prev < vertices.size());
ENSURE(index2Prev >= 0 && index2Prev < vertices.size());
ENSURE(index1Prev < vertices.size());
ENSURE(index2Prev < vertices.size());
// Add two corner points from last iteration and join with one of our own corners to create triangle 1
// (don't need to do this if i == 1 because i == 0 are the first two ones, they don't need to be copied)
if (i > 1)

View File

@ -803,7 +803,7 @@ void CCmpTerritoryManager::UpdateBoundaryLines()
if (m_EnableLineDebugOverlays)
{
const int numHighlightNodes = 7; // highlight the X last nodes on either end to see where they meet (if closed)
const size_t numHighlightNodes = 7; // highlight the X last nodes on either end to see where they meet (if closed)
SOverlayLine overlayNode;
if (j > boundaries[i].points.size() - 1 - numHighlightNodes)
overlayNode.m_Color = CColor(1.f, 0.f, 0.f, 1.f);

View File

@ -522,7 +522,7 @@ void ObjectBottomBar::OnViewerSetting(wxCommandEvent& evt)
POST_MESSAGE(SetViewParamB, (AtlasMessage::eRenderView::ACTOR, L"axes_marker", m_ViewerAxesMarker));
break;
case ID_ViewerPropPoints:
m_ViewerPropPointsMode = (++m_ViewerPropPointsMode % 3);
m_ViewerPropPointsMode = (m_ViewerPropPointsMode+1) % 3;
POST_MESSAGE(SetViewParamI, (AtlasMessage::eRenderView::ACTOR, L"prop_points", m_ViewerPropPointsMode));
break;
}