diff Indoor.cpp @ 486:7887a9cf9e7b

Spells
author Nomad
date Wed, 27 Feb 2013 17:29:05 +0200
parents 7dfe960c323c
children cb0ad52d6a26
line wrap: on
line diff
--- a/Indoor.cpp	Wed Feb 27 02:26:16 2013 +0400
+++ b/Indoor.cpp	Wed Feb 27 17:29:05 2013 +0200
@@ -316,9 +316,9 @@
   pRenderer->DrawBillboardList_BLV();
   if ( !pRenderer->pRenderD3D )
   {
-    if ( pBLVRenderParams->uFlags & 2 )
-      stru170_sub_4B0967();
-    if ( pBLVRenderParams->uFlags & 1 )
+    if (pBLVRenderParams->uFlags & INDOOR_CAMERA_DRAW_D3D_OUTLINES)
+      pBspRenderer->DrawFaceOutlines();
+    if (pBLVRenderParams->uFlags & INDOOR_CAMERA_DRAW_SW_OUTLINES)
     {
       v1 = pBLVRenderParams->pRenderTarget;
       v6 = 0;
@@ -1455,7 +1455,7 @@
               sub_440639(v31 - 1);
             }
           }
-          if ( pBLVRenderParams->uFlags & 1 )
+          if (pBLVRenderParams->uFlags & INDOOR_CAMERA_DRAW_SW_OUTLINES)
             pGame->pIndoorCameraD3D->PrepareAndDrawDebugOutline(pFace, 0x1E1EFF);
         }
       }
@@ -1614,7 +1614,7 @@
 }
 
 //----- (004B0967) --------------------------------------------------------
-void __cdecl stru170_sub_4B0967()
+void BspRenderer::DrawFaceOutlines()
 {
   signed int i; // edi@1
   int v1; // esi@2