Mercurial > mm7
comparison mm7_5.cpp @ 1637:2c71fa8913d2
class OutdoorCamera -> ODMRenderParams
author | Nomad |
---|---|
date | Tue, 17 Sep 2013 14:10:41 +0200 |
parents | de6e646822a6 |
children | 7182930263b3 |
comparison
equal
deleted
inserted
replaced
1633:384a6b9d1333 | 1637:2c71fa8913d2 |
---|---|
6 #include "mm7_data.h" | 6 #include "mm7_data.h" |
7 #include "VideoPlayer.h" | 7 #include "VideoPlayer.h" |
8 #include "Sprites.h" | 8 #include "Sprites.h" |
9 #include "MapInfo.h" | 9 #include "MapInfo.h" |
10 #include "BSPModel.h" | 10 #include "BSPModel.h" |
11 #include "OutdoorCamera.h" | |
12 #include "LightmapBuilder.h" | 11 #include "LightmapBuilder.h" |
13 #include "DecalBuilder.h" | 12 #include "DecalBuilder.h" |
14 #include "Mouse.h" | 13 #include "Mouse.h" |
15 #include "Keyboard.h" | 14 #include "Keyboard.h" |
16 #include "GammaControl.h" | 15 #include "GammaControl.h" |
1744 bUnderwater = 1; | 1743 bUnderwater = 1; |
1745 pGame->uFlags2 |= 8u; | 1744 pGame->uFlags2 |= 8u; |
1746 } | 1745 } |
1747 if ( !_stricmp(pCurrentMapName, "out15.odm") || !_stricmp(pCurrentMapName, "d47.blv") ) | 1746 if ( !_stricmp(pCurrentMapName, "out15.odm") || !_stricmp(pCurrentMapName, "d47.blv") ) |
1748 bNoNPCHiring = 1; | 1747 bNoNPCHiring = 1; |
1749 PrepareToLoadODM(1u, (OutdoorCamera *)1); | 1748 PrepareToLoadODM(1u, (ODMRenderParams *)1); |
1750 pAudioPlayer->SetMapEAX(); | 1749 pAudioPlayer->SetMapEAX(); |
1751 bDialogueUI_InitializeActor_NPC_ID = 0; | 1750 bDialogueUI_InitializeActor_NPC_ID = 0; |
1752 OnMapLoad(); | 1751 OnMapLoad(); |
1753 pOutdoor->SetFog(); | 1752 pOutdoor->SetFog(); |
1754 TeleportToStartingPoint(uLevel_StartingPointType); | 1753 TeleportToStartingPoint(uLevel_StartingPointType); |
3581 break; | 3580 break; |
3582 } | 3581 } |
3583 } | 3582 } |
3584 while ( pMessageQueue_50CBD0->uNumMessages ); | 3583 while ( pMessageQueue_50CBD0->uNumMessages ); |
3585 } | 3584 } |
3586 } | |
3587 | |
3588 //----- (00436427) -------------------------------------------------------- | |
3589 double get_shading_dist_mist() | |
3590 { | |
3591 if (uCurrentlyLoadedLevelType == LEVEL_Outdoor) | |
3592 return (double)pOutdoorCamera->shading_dist_mist; | |
3593 else | |
3594 return 16192.0; | |
3595 } | 3585 } |
3596 | 3586 |
3597 //----- (0043648F) -------------------------------------------------------- | 3587 //----- (0043648F) -------------------------------------------------------- |
3598 void Vec3_short__to_RenderVertexSoft(RenderVertexSoft *_this, Vec3_short_ *a2) | 3588 void Vec3_short__to_RenderVertexSoft(RenderVertexSoft *_this, Vec3_short_ *a2) |
3599 { | 3589 { |