@@ -104,7 +104,7 @@ CW3DViewDoc::CW3DViewDoc (void)
104104 m_pCAnimCombo (NULL ),
105105 m_pCBackgroundBMP (NULL ),
106106 m_CurrentFrame (0 ),
107- m_bAnimBlend (true ),
107+ m_bAnimBlend (TRUE ),
108108 m_bAnimateCamera (false ),
109109 m_bAutoCameraReset (true ),
110110 m_bOneTimeReset (true ),
@@ -118,8 +118,8 @@ CW3DViewDoc::CW3DViewDoc (void)
118118 m_bCompress_channel_Q(false )
119119{
120120 // Read the camera animation settings from the registry
121- m_bAnimateCamera = ((BOOL)theApp.GetProfileInt (" Config" , " AnimateCamera" , 0 )) == true ;
122- m_bAutoCameraReset = ((BOOL)theApp.GetProfileInt (" Config" , " ResetCamera" , 1 )) == true ;
121+ m_bAnimateCamera = ((BOOL)theApp.GetProfileInt (" Config" , " AnimateCamera" , 0 )) != 0 ;
122+ m_bAutoCameraReset = ((BOOL)theApp.GetProfileInt (" Config" , " ResetCamera" , 1 )) != 0 ;
123123 return ;
124124}
125125
@@ -3032,8 +3032,8 @@ CW3DViewDoc::Save_Camera_Settings (void)
30323032void
30333033CW3DViewDoc::Load_Camera_Settings (void )
30343034{
3035- m_ManualFOV = (theApp.GetProfileInt (" Config" , " UseManualFOV" , 0 ) == true );
3036- m_ManualClipPlanes = (theApp.GetProfileInt (" Config" , " UseManualClipPlanes" , 0 ) == true );
3035+ m_ManualFOV = (theApp.GetProfileInt (" Config" , " UseManualFOV" , 0 ) != 0 );
3036+ m_ManualClipPlanes = (theApp.GetProfileInt (" Config" , " UseManualClipPlanes" , 0 ) != 0 );
30373037
30383038 CGraphicView *graphic_view = GetGraphicView ();
30393039 if (graphic_view != NULL ) {
0 commit comments