Mercurial > mm7
comparison mm7_2.cpp @ 168:ee11772d0ad2
New sky (turn on -new_sky console command)
cube textures are stored in /daata/skybox/%name%_xn.tga %name%%_xp.tga %name%_zn.tga etc
author | Nomad |
---|---|
date | Thu, 14 Feb 2013 13:58:34 +0200 |
parents | cca78efb377e |
children | d1dde383af89 |
comparison
equal
deleted
inserted
replaced
144:8ab4484c22e0 | 168:ee11772d0ad2 |
---|---|
11258 pOutdoor->Draw(); | 11258 pOutdoor->Draw(); |
11259 } | 11259 } |
11260 pRenderer->DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene(); | 11260 pRenderer->DrawBillboards_And_MaybeRenderSpecialEffects_And_EndScene(); |
11261 memset(&Dst, 0, 0x7Cu); | 11261 memset(&Dst, 0, 0x7Cu); |
11262 Dst.dwSize = 124; | 11262 Dst.dwSize = 124; |
11263 if ( pRenderer->LockSurface_DDraw4(pRenderer->pBackBuffer4, &Dst, 1u) ) | 11263 if ( pRenderer->LockSurface_DDraw4(pRenderer->pBackBuffer4, &Dst, DDLOCK_WAIT) ) |
11264 { | 11264 { |
11265 v9 = (unsigned __int16 *)Dst.lpSurface; | 11265 v9 = (unsigned __int16 *)Dst.lpSurface; |
11266 v10 = 0; | 11266 v10 = 0; |
11267 v11 = Dst.lPitch >> 1; | 11267 v11 = Dst.lPitch >> 1; |
11268 for ( i = 0; i < v27; ++i ) | 11268 for ( i = 0; i < v27; ++i ) |
13891 | 13891 |
13892 | 13892 |
13893 | 13893 |
13894 | 13894 |
13895 | 13895 |
13896 | 13896 bool new_sky = false; |
13897 | 13897 |
13898 //----- (00462C94) -------------------------------------------------------- | 13898 //----- (00462C94) -------------------------------------------------------- |
13899 bool MM_Main(const wchar_t *pCmdLine) | 13899 bool MM_Main(const wchar_t *pCmdLine) |
13900 { | 13900 { |
13901 HWND hPrevWnd; // eax@1 | 13901 HWND hPrevWnd; // eax@1 |
13936 dword_6BE364_game_settings_1 |= 0x40; | 13936 dword_6BE364_game_settings_1 |= 0x40; |
13937 bNoVideo = true; | 13937 bNoVideo = true; |
13938 } | 13938 } |
13939 if (wcsstr(pCmdLine, L"-nocd")) | 13939 if (wcsstr(pCmdLine, L"-nocd")) |
13940 bNoCD = true; | 13940 bNoCD = true; |
13941 if (wcsstr(pCmdLine, L"-new_sky")) | |
13942 new_sky = true; | |
13941 } | 13943 } |
13942 stru_51076C.registry_debug_flags = ReadWindowsRegistryInt("debug flags", 0); | 13944 stru_51076C.registry_debug_flags = ReadWindowsRegistryInt("debug flags", 0); |
13943 | 13945 |
13944 | 13946 |
13945 v8 = sub_4AC1C9(0, (Vec4_int_ *)a2); | 13947 v8 = sub_4AC1C9(0, (Vec4_int_ *)a2); |