From dc575b2e2f8a22acd011a7e496fb03c7de7d9315 Mon Sep 17 00:00:00 2001 From: jdolan Date: Sun, 7 Jul 2013 09:47:03 -0400 Subject: [PATCH] Fix uninitialized variable warnings and really retarded syntax (which I think might have had unintended side effects.) Clipper tool works in all 3 view types. --- radiant/xywindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radiant/xywindow.cpp b/radiant/xywindow.cpp index 55b4ae96..3a0812b7 100644 --- a/radiant/xywindow.cpp +++ b/radiant/xywindow.cpp @@ -1810,7 +1810,7 @@ void XYWnd::DropClipPoint( guint32 nFlags, int pointx, int pointy ){ // g_pParentWnd->ActiveXY()->GetViewType() // cf VIEWTYPE defintion: enum VIEWTYPE {YZ, XZ, XY}; int nViewType = g_pParentWnd->ActiveXY()->GetViewType(); - int nDim = ( nViewType == YZ ) ? nDim = 0 : ( ( nViewType == XZ ) ? nDim = 1 : nDim = 2 ); + int nDim = ( nViewType == YZ ) ? 0 : ( ( nViewType == XZ ) ? 1 : 2 ); //(*pPt)[nDim] = g_qeglobals.d_work_max[nDim]; vec3_t mid; Select_GetMid( mid ); @@ -1834,7 +1834,7 @@ void XYWnd::DropPathPoint( guint32 nFlags, int pointx, int pointy ){ // g_pParentWnd->ActiveXY()->GetViewType() // cf VIEWTYPE definition: enum VIEWTYPE {YZ, XZ, XY}; int nViewType = g_pParentWnd->ActiveXY()->GetViewType(); - int nDim = ( nViewType == YZ ) ? nDim = 0 : ( ( nViewType == XZ ) ? nDim = 1 : nDim = 2 ); + int nDim = ( nViewType == YZ ) ? 0 : ( ( nViewType == XZ ) ? 1 : 2 ); g_PathPoints[g_nPathCount].m_ptClip[nDim] = g_qeglobals.d_work_max[nDim]; g_nPathCount++;