mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-10 06:31:41 +00:00
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.
This commit is contained in:
parent
abfecbecfa
commit
dc575b2e2f
1 changed files with 2 additions and 2 deletions
|
@ -1810,7 +1810,7 @@ void XYWnd::DropClipPoint( guint32 nFlags, int pointx, int pointy ){
|
||||||
// g_pParentWnd->ActiveXY()->GetViewType()
|
// g_pParentWnd->ActiveXY()->GetViewType()
|
||||||
// cf VIEWTYPE defintion: enum VIEWTYPE {YZ, XZ, XY};
|
// cf VIEWTYPE defintion: enum VIEWTYPE {YZ, XZ, XY};
|
||||||
int nViewType = g_pParentWnd->ActiveXY()->GetViewType();
|
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];
|
//(*pPt)[nDim] = g_qeglobals.d_work_max[nDim];
|
||||||
vec3_t mid;
|
vec3_t mid;
|
||||||
Select_GetMid( mid );
|
Select_GetMid( mid );
|
||||||
|
@ -1834,7 +1834,7 @@ void XYWnd::DropPathPoint( guint32 nFlags, int pointx, int pointy ){
|
||||||
// g_pParentWnd->ActiveXY()->GetViewType()
|
// g_pParentWnd->ActiveXY()->GetViewType()
|
||||||
// cf VIEWTYPE definition: enum VIEWTYPE {YZ, XZ, XY};
|
// cf VIEWTYPE definition: enum VIEWTYPE {YZ, XZ, XY};
|
||||||
int nViewType = g_pParentWnd->ActiveXY()->GetViewType();
|
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_PathPoints[g_nPathCount].m_ptClip[nDim] = g_qeglobals.d_work_max[nDim];
|
||||||
|
|
||||||
g_nPathCount++;
|
g_nPathCount++;
|
||||||
|
|
Loading…
Reference in a new issue