Mercurial > mm7
comparison mm7_5.cpp @ 1091:9c7eb4037567
data moving
author | Gloval |
---|---|
date | Sun, 26 May 2013 14:13:22 +0400 |
parents | b79139c3b5c8 |
children | 3e5d70cfe20e |
comparison
equal
deleted
inserted
replaced
1082:7033eb155558 | 1091:9c7eb4037567 |
---|---|
5936 LOBYTE(result) = 1; | 5936 LOBYTE(result) = 1; |
5937 return result; | 5937 return result; |
5938 } | 5938 } |
5939 // A750D8: using guessed type __int64 qword_A750D8; | 5939 // A750D8: using guessed type __int64 qword_A750D8; |
5940 | 5940 |
5941 //----- (0043EF2B) -------------------------------------------------------- | |
5942 void __fastcall WetsuitOn(unsigned int uPlayerID) | |
5943 { | |
5944 unsigned int v1; // ebx@1 | |
5945 Player **v2; // esi@2 | |
5946 enum CHARACTER_RACE v3; // edi@2 | |
5947 signed int v4; // eax@2 | |
5948 int v5; // ecx@5 | |
5949 unsigned __int8 v6; // al@7 | |
5950 char pContainer[20]; // [sp+4h] [bp-1Ch]@7 | |
5951 unsigned int v8; // [sp+18h] [bp-8h]@1 | |
5952 int v9; // [sp+1Ch] [bp-4h]@7 | |
5953 | |
5954 v1 = uPlayerID - 1; | |
5955 v8 = uPlayerID; | |
5956 if ( (uPlayerID - 1) >= 0 ) | |
5957 { | |
5958 v2 = &pPlayers[uPlayerID]; | |
5959 v3 = (*v2)->GetRace(); | |
5960 v4 = (*v2)->GetSexByVoice(); | |
5961 if ( v3 && v3 != 1 && v3 != 2 ) | |
5962 v5 = (v4 != 0) + 3; | |
5963 else | |
5964 v5 = (v4 != 0) + 1; | |
5965 v9 = v5; | |
5966 wsprintfA(pContainer, "pc23v%dBod", v5); | |
5967 papredoll_dbods[v1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); | |
5968 wsprintfA(pContainer, "pc23v%dlad", v9); | |
5969 papredoll_dlads[v1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); | |
5970 wsprintfA(pContainer, "pc23v%dlau", v9); | |
5971 papredoll_dlaus[v1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); | |
5972 wsprintfA(pContainer, "pc23v%drh", v9); | |
5973 papredoll_drhs[v1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); | |
5974 wsprintfA(pContainer, "pc23v%dlh", v9); | |
5975 papredoll_dlhs[v1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); | |
5976 wsprintfA(pContainer, "pc23v%dlhu", v9); | |
5977 papredoll_dlhus[v1] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); | |
5978 v6 = pPlayers[v1 + 1]->uCurrentFace; | |
5979 if ( v6 == 12 || v6 == 13 ) | |
5980 papredoll_dbrds[pPlayers[v8]->uCurrentFace] = 0; | |
5981 papredoll_flying_feet[pPlayers[v8]->uCurrentFace] = 0; | |
5982 IsPlayerWearingWatersuit[v8] = 1; | |
5983 } | |
5984 } | |
5985 | |
5986 //----- (0043F0BD) -------------------------------------------------------- | |
5987 unsigned int __fastcall WetsuitOff(unsigned int uPlayerID) | |
5988 { | |
5989 unsigned int result; // eax@1 | |
5990 Player **v2; // edi@2 | |
5991 unsigned int v3; // ebx@2 | |
5992 int v4; // ebx@2 | |
5993 char v5; // al@2 | |
5994 char pContainer[20]; // [sp+0h] [bp-18h]@4 | |
5995 unsigned int v7; // [sp+14h] [bp-4h]@1 | |
5996 | |
5997 result = uPlayerID - 1; | |
5998 v7 = uPlayerID; | |
5999 if ( ((uPlayerID - 1) & 0x80000000u) == 0 ) | |
6000 { | |
6001 v2 = &pPlayers[uPlayerID]; | |
6002 v3 = uPlayerID - 1; | |
6003 papredoll_dbods[v3] = pIcons_LOD->LoadTexture(dbod_texnames_by_face[(*v2)->uCurrentFace], TEXTURE_16BIT_PALETTE); | |
6004 papredoll_dlads[v3] = pIcons_LOD->LoadTexture(dlad_texnames_by_face[(*v2)->uCurrentFace], TEXTURE_16BIT_PALETTE); | |
6005 papredoll_dlaus[v3] = pIcons_LOD->LoadTexture(dlau_texnames_by_face[(*v2)->uCurrentFace], TEXTURE_16BIT_PALETTE); | |
6006 papredoll_drhs[v3] = pIcons_LOD->LoadTexture(drh_texnames_by_face[(*v2)->uCurrentFace], TEXTURE_16BIT_PALETTE); | |
6007 papredoll_dlhs[v3] = pIcons_LOD->LoadTexture(dlh_texnames_by_face[(*v2)->uCurrentFace], TEXTURE_16BIT_PALETTE); | |
6008 papredoll_dlhus[v3] = pIcons_LOD->LoadTexture(dlhu_texnames_by_face[(*v2)->uCurrentFace], TEXTURE_16BIT_PALETTE); | |
6009 v4 = (int)&(*v2)->uCurrentFace; | |
6010 v5 = *(char *)v4; | |
6011 if ( *(char *)v4 == 12 || v5 == 13 ) | |
6012 { | |
6013 wsprintfA(pContainer, "pc%02dbrd", v5 + 1); | |
6014 v4 = (int)&(*v2)->uCurrentFace; | |
6015 papredoll_dbrds[*(char *)v4] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); | |
6016 } | |
6017 wsprintfA(pContainer, "item281pc%02d", *(char *)v4 + 1); | |
6018 papredoll_flying_feet[(*v2)->uCurrentFace] = pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE); | |
6019 result = v7; | |
6020 IsPlayerWearingWatersuit[v7] = 0; | |
6021 } | |
6022 return result; | |
6023 } | |
6024 | 5941 |
6025 //----- (0043F333) -------------------------------------------------------- | 5942 //----- (0043F333) -------------------------------------------------------- |
6026 void BspRenderer::MakeVisibleSectorList() | 5943 void BspRenderer::MakeVisibleSectorList() |
6027 { | 5944 { |
6028 int v6; // ebx@3 | 5945 int v6; // ebx@3 |
11042 dword_507CBC = 1; | 10959 dword_507CBC = 1; |
11043 for ( i = pGUIWindow_CurrentMenu->pControlsHead; i; i = i->pNext ) | 10960 for ( i = pGUIWindow_CurrentMenu->pControlsHead; i; i = i->pNext ) |
11044 { | 10961 { |
11045 if ( i->msg == UIMSG_InventoryLeftClick ) | 10962 if ( i->msg == UIMSG_InventoryLeftClick ) |
11046 { | 10963 { |
11047 dword_50698C = i->uX; | 10964 dword_50698C_uX = i->uX; |
11048 dword_506988 = i->uY; | 10965 dword_506988_uY = i->uY; |
11049 dword_506984 = i->uZ; | 10966 dword_506984_uZ = i->uZ; |
11050 dword_506980 = i->uW; | 10967 dword_506980_uW = i->uW; |
11051 i->uW = 0; | 10968 i->uW = 0; |
11052 i->uZ = 0; | 10969 i->uZ = 0; |
11053 i->uY = 0; | 10970 i->uY = 0; |
11054 i->uX = 0; | 10971 i->uX = 0; |
11055 } | 10972 } |
11087 pBtn_Up = 0; | 11004 pBtn_Up = 0; |
11088 for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext ) | 11005 for ( pButton = pGUIWindow_CurrentMenu->pControlsHead; pButton; pButton = pButton->pNext ) |
11089 { | 11006 { |
11090 if ( pButton->msg == UIMSG_InventoryLeftClick ) | 11007 if ( pButton->msg == UIMSG_InventoryLeftClick ) |
11091 { | 11008 { |
11092 pButton->uX = dword_50698C; | 11009 pButton->uX = dword_50698C_uX; |
11093 pButton->uY = dword_506988; | 11010 pButton->uY = dword_506988_uY; |
11094 pButton->uZ = dword_506984; | 11011 pButton->uZ = dword_506984_uZ; |
11095 pButton->uW = dword_506980; | 11012 pButton->uW = dword_506980_uW; |
11096 pGUIWindow_CurrentMenu->_41D08F_set_keyboard_control_group(1, 0, 0, 0); | 11013 pGUIWindow_CurrentMenu->_41D08F_set_keyboard_control_group(1, 0, 0, 0); |
11097 } | 11014 } |
11098 } | 11015 } |
11099 } | 11016 } |
11100 } | 11017 } |