diff mm7_5.cpp @ 1637:2c71fa8913d2

class OutdoorCamera -> ODMRenderParams
author Nomad
date Tue, 17 Sep 2013 14:10:41 +0200
parents de6e646822a6
children 7182930263b3
line wrap: on
line diff
--- a/mm7_5.cpp	Tue Sep 17 12:40:37 2013 +0200
+++ b/mm7_5.cpp	Tue Sep 17 14:10:41 2013 +0200
@@ -8,7 +8,6 @@
 #include "Sprites.h"
 #include "MapInfo.h"
 #include "BSPModel.h"
-#include "OutdoorCamera.h"
 #include "LightmapBuilder.h"
 #include "DecalBuilder.h"
 #include "Mouse.h"
@@ -1746,7 +1745,7 @@
             }
             if ( !_stricmp(pCurrentMapName, "out15.odm") || !_stricmp(pCurrentMapName, "d47.blv") )
               bNoNPCHiring = 1;
-            PrepareToLoadODM(1u, (OutdoorCamera *)1);
+            PrepareToLoadODM(1u, (ODMRenderParams *)1);
             pAudioPlayer->SetMapEAX();
             bDialogueUI_InitializeActor_NPC_ID = 0;
             OnMapLoad();
@@ -3585,15 +3584,6 @@
   }
 }
 
-//----- (00436427) --------------------------------------------------------
-double  get_shading_dist_mist()
-{
-  if (uCurrentlyLoadedLevelType == LEVEL_Outdoor)
-    return (double)pOutdoorCamera->shading_dist_mist;
-  else
-    return 16192.0;
-}
-
 //----- (0043648F) --------------------------------------------------------
 void Vec3_short__to_RenderVertexSoft(RenderVertexSoft *_this, Vec3_short_ *a2)
 {