Mercurial > mm7
comparison mm7_3.cpp @ 1459:2ca62c9e7b3c
Function names
author | Nomad |
---|---|
date | Wed, 21 Aug 2013 16:06:50 +0200 |
parents | 934074e7fcc1 |
children | c987b5ed09af |
comparison
equal
deleted
inserted
replaced
1458:934074e7fcc1 | 1459:2ca62c9e7b3c |
---|---|
671 } | 671 } |
672 return result; | 672 return result; |
673 } | 673 } |
674 | 674 |
675 //----- (0046F04E) -------------------------------------------------------- | 675 //----- (0046F04E) -------------------------------------------------------- |
676 signed int _46F04E_collide_against_portals() | 676 int _46F04E_collide_against_portals() |
677 { | 677 { |
678 BLVSector *v0; // ecx@1 | 678 BLVSector *v0; // ecx@1 |
679 unsigned int v1; // eax@1 | 679 unsigned int v1; // eax@1 |
680 int v2; // eax@2 | 680 int v2; // eax@2 |
681 BLVFace *v3; // eax@3 | 681 BLVFace *v3; // eax@3 |
3346 *v19 = 0; | 3346 *v19 = 0; |
3347 return 1; | 3347 return 1; |
3348 } | 3348 } |
3349 | 3349 |
3350 //----- (00475665) -------------------------------------------------------- | 3350 //----- (00475665) -------------------------------------------------------- |
3351 signed int sub_475665(BLVFace *_this, int a2, __int16 a3) | 3351 int sub_475665(BLVFace *_this, int a2, __int16 a3) |
3352 { | 3352 { |
3353 unsigned int v3; // eax@1 | 3353 unsigned int v3; // eax@1 |
3354 Vec3_short_ *v4; // edx@3 | 3354 Vec3_short_ *v4; // edx@3 |
3355 signed int v5; // eax@4 | 3355 signed int v5; // eax@4 |
3356 int v6; // esi@4 | 3356 int v6; // esi@4 |
4330 && (double)(signed int)pViewport->uViewportBR_Y > a1->field_B4[i*4+21] ) | 4330 && (double)(signed int)pViewport->uViewportBR_Y > a1->field_B4[i*4+21] ) |
4331 v16 = 1; | 4331 v16 = 1; |
4332 } | 4332 } |
4333 } | 4333 } |
4334 return v16; | 4334 return v16; |
4335 } | |
4336 | |
4337 //----- (004783FA) -------------------------------------------------------- | |
4338 void sub_4783FA_construct_global_73D150() | |
4339 { | |
4340 char *v0; // eax@1 | |
4341 signed int v1; // ecx@1 | |
4342 | |
4343 v0 = (char *)&array_73D150[0].flt_2C; | |
4344 v1 = 20; | |
4345 do | |
4346 { | |
4347 *(float *)v0 = 0.0; | |
4348 v0 += 48; | |
4349 --v1; | |
4350 } | |
4351 while ( v1 ); | |
4352 } | 4335 } |
4353 | 4336 |
4354 //----- (0047840D) -------------------------------------------------------- | 4337 //----- (0047840D) -------------------------------------------------------- |
4355 char Render::DrawBuildingsD3D() | 4338 char Render::DrawBuildingsD3D() |
4356 { | 4339 { |
5814 v7 = 248; | 5797 v7 = 248; |
5815 return (-1 - v7) << 24; | 5798 return (-1 - v7) << 24; |
5816 } | 5799 } |
5817 | 5800 |
5818 //----- (0047C4FC) -------------------------------------------------------- | 5801 //----- (0047C4FC) -------------------------------------------------------- |
5819 signed int __fastcall GetActorTintColor(int max_dimm, int min_dimm, float distance, int a4, RenderBillboard *a5) | 5802 int __fastcall GetActorTintColor(int max_dimm, int min_dimm, float distance, int a4, RenderBillboard *a5) |
5820 { | 5803 { |
5821 //int v5; // esi@1 | 5804 //int v5; // esi@1 |
5822 signed int v6; // edx@1 | 5805 signed int v6; // edx@1 |
5823 //signed int result; // eax@2 | 5806 //signed int result; // eax@2 |
5824 int v8; // eax@3 | 5807 int v8; // eax@3 |
5968 return 64 - (sWorldPosZ >> 9); // sar is in original exe, resulting -880 / 512 = -1 | 5951 return 64 - (sWorldPosZ >> 9); // sar is in original exe, resulting -880 / 512 = -1 |
5969 // and -880 sar 9 = -2 | 5952 // and -880 sar 9 = -2 |
5970 } | 5953 } |
5971 | 5954 |
5972 //----- (0047F469) -------------------------------------------------------- | 5955 //----- (0047F469) -------------------------------------------------------- |
5973 int __stdcall GridCellToWorldPosX(int a1) | 5956 int GridCellToWorldPosX(int a1) |
5974 { | 5957 { |
5975 return (a1 - 64) << 9; | 5958 return (a1 - 64) << 9; |
5976 } | 5959 } |
5977 | 5960 |
5978 //----- (0047F476) -------------------------------------------------------- | 5961 //----- (0047F476) -------------------------------------------------------- |
5979 int __stdcall GridCellToWorldPosZ(int a1) | 5962 int GridCellToWorldPosZ(int a1) |
5980 { | 5963 { |
5981 return (64 - a1) << 9; | 5964 return (64 - a1) << 9; |
5982 } | 5965 } |
5983 | 5966 |
5984 | 5967 |
6185 } | 6168 } |
6186 return v14 + v8 + fixpoint_sub0(v13, (v10 - v8) * 128) + fixpoint_sub0(v15, (v9 - v8) * 128); | 6169 return v14 + v8 + fixpoint_sub0(v13, (v10 - v8) * 128) + fixpoint_sub0(v15, (v9 - v8) * 128); |
6187 } | 6170 } |
6188 else | 6171 else |
6189 return y_x1z1; | 6172 return y_x1z1; |
6190 } | |
6191 | |
6192 //----- (00482A90) -------------------------------------------------------- | |
6193 signed int const_1_0() | |
6194 { | |
6195 return 1; | |
6196 } | 6173 } |
6197 | 6174 |
6198 | 6175 |
6199 | 6176 |
6200 | 6177 |
7795 if ( !GameUI_Footer_TimeLeft ) | 7772 if ( !GameUI_Footer_TimeLeft ) |
7796 ShowStatusBarString(pGlobalTXT_LocalizationStrings[521], 2u);// Nothing here | 7773 ShowStatusBarString(pGlobalTXT_LocalizationStrings[521], 2u);// Nothing here |
7797 } | 7774 } |
7798 | 7775 |
7799 //----- (0044C28B) -------------------------------------------------------- | 7776 //----- (0044C28B) -------------------------------------------------------- |
7800 signed int const_2() | 7777 int const_2() |
7801 { | 7778 { |
7802 return 2; | 7779 return 2; |
7803 } | 7780 } |
7804 | 7781 |
7805 //----- (0044C28F) -------------------------------------------------------- | 7782 //----- (0044C28F) -------------------------------------------------------- |
7806 bool sub_44C28F_open_nwc_dungeon() | 7783 bool TeleportToNWCDungeon() |
7807 { | 7784 { |
7808 bool result; // eax@1 | 7785 if (!_stricmp("nwc.blv", pCurrentMapName.data())) |
7809 | 7786 return false; |
7810 result = _stricmp("nwc.blv", pCurrentMapName.data()); | 7787 |
7811 if ( result ) | 7788 _5B65A8_npcdata_uflags_or_other = 0; |
7812 { | 7789 _5B65AC_npcdata_fame_or_other = 0; |
7813 _5B65A8_npcdata_uflags_or_other = 0; | 7790 _5B65B0_npcdata_rep_or_other = 0; |
7814 _5B65AC_npcdata_fame_or_other = 0; | 7791 _5B65B4_npcdata_loword_house_or_other = 0; |
7815 _5B65B0_npcdata_rep_or_other = 0; | 7792 _5B65B8_npcdata_hiword_house_or_other = 0; |
7816 _5B65B4_npcdata_loword_house_or_other = 0; | 7793 dword_5B65BC = 0; |
7817 _5B65B8_npcdata_hiword_house_or_other = 0; | 7794 dword_5B65C0 = 0; |
7818 dword_5B65BC = 0; | 7795 |
7819 dword_5B65C0 = 0; | 7796 pGameLoadingUI_ProgressBar->uType = GUIProgressBar::TYPE_Fullscreen; |
7820 pGameLoadingUI_ProgressBar->uType = GUIProgressBar::TYPE_Fullscreen; | 7797 sub_44987B("nwc.blv", MapStartPoint_Party); |
7821 sub_44987B("nwc.blv", MapStartPoint_Party); | 7798 pCurrentScreen = SCREEN_GAME; |
7822 pCurrentScreen = SCREEN_GAME; | 7799 return true; |
7823 result = 1; | |
7824 } | |
7825 return result; | |
7826 } | 7800 } |
7827 | 7801 |
7828 //----- (0044C2F4) -------------------------------------------------------- | 7802 //----- (0044C2F4) -------------------------------------------------------- |
7829 bool LevelDecoration::IsInteractive() | 7803 bool LevelDecoration::IsInteractive() |
7830 { | 7804 { |