Mercurial > mm7
comparison mm7_5.cpp @ 1459:2ca62c9e7b3c
Function names
author | Nomad |
---|---|
date | Wed, 21 Aug 2013 16:06:50 +0200 |
parents | 934074e7fcc1 |
children | bba0944c9b27 |
comparison
equal
deleted
inserted
replaced
1458:934074e7fcc1 | 1459:2ca62c9e7b3c |
---|---|
1749 OnMapLoad(); | 1749 OnMapLoad(); |
1750 pOutdoor->SetFog(); | 1750 pOutdoor->SetFog(); |
1751 TeleportToStartingPoint(uLevel_StartingPointType); | 1751 TeleportToStartingPoint(uLevel_StartingPointType); |
1752 pParty->vPosition.z = GetTerrainHeightsAroundParty2(pParty->vPosition.x, pParty->vPosition.y, &v213, 0); | 1752 pParty->vPosition.z = GetTerrainHeightsAroundParty2(pParty->vPosition.x, pParty->vPosition.y, &v213, 0); |
1753 pParty->uFallStartY = pParty->vPosition.z; | 1753 pParty->uFallStartY = pParty->vPosition.z; |
1754 sub_461103(); | 1754 _461103_load_level_sub(); |
1755 pEventTimer->Resume(); | 1755 pEventTimer->Resume(); |
1756 viewparams->bRedrawGameUI = 1; | 1756 viewparams->bRedrawGameUI = 1; |
1757 pCurrentScreen = SCREEN_GAME; | 1757 pCurrentScreen = SCREEN_GAME; |
1758 pGameLoadingUI_ProgressBar->Release(); | 1758 pGameLoadingUI_ProgressBar->Release(); |
1759 } | 1759 } |
3386 pPlayer[uPlayerCreationUI_SelectedCharacter].Reset((PLAYER_CLASS_TYPE)pParam); | 3386 pPlayer[uPlayerCreationUI_SelectedCharacter].Reset((PLAYER_CLASS_TYPE)pParam); |
3387 pAudioPlayer->PlaySound(SOUND_Button, 0, 0, -1, 0, 0, 0, 0); | 3387 pAudioPlayer->PlaySound(SOUND_Button, 0, 0, -1, 0, 0, 0, 0); |
3388 break; | 3388 break; |
3389 case UIMSG_PlayerCreationClickOK: | 3389 case UIMSG_PlayerCreationClickOK: |
3390 GUIWindow::Create(580, 431, 0, 0, WINDOW_PressedButton2, (int)pPlayerCreationUI_BtnOK, 0); | 3390 GUIWindow::Create(580, 431, 0, 0, WINDOW_PressedButton2, (int)pPlayerCreationUI_BtnOK, 0); |
3391 if ( PlayerCreation_GetUnspentAttributePointCount() || !PlayerCreation_Chose4Skills() ) | 3391 if ( PlayerCreation_GetUnspentAttributePointCount() || !PlayerCreation_Choose4Skills() ) |
3392 GameUI_Footer_TimeLeft = GetTickCount() + 4000; | 3392 GameUI_Footer_TimeLeft = GetTickCount() + 4000; |
3393 else | 3393 else |
3394 uGameState = GAME_STATE_STARTING_NEW_GAME; | 3394 uGameState = GAME_STATE_STARTING_NEW_GAME; |
3395 break; | 3395 break; |
3396 case UIMSG_PlayerCreationClickReset: | 3396 case UIMSG_PlayerCreationClickReset: |
4870 result = 0; | 4870 result = 0; |
4871 return result; | 4871 return result; |
4872 } | 4872 } |
4873 | 4873 |
4874 //----- (004088E9) -------------------------------------------------------- | 4874 //----- (004088E9) -------------------------------------------------------- |
4875 signed int __fastcall sub_4088E9(int a1, int a2, int a3, int a4, int a5, int a6) | 4875 int __fastcall sub_4088E9(int x1, int y1, int x2, int y2, int x3, int y3) |
4876 { | 4876 { |
4877 int v6; // esi@1 | |
4878 int v7; // edi@1 | |
4879 int v8; // eax@1 | 4877 int v8; // eax@1 |
4880 signed int result; // eax@1 | 4878 signed int result; // eax@1 |
4881 int v10; // [sp+Ch] [bp-4h]@1 | |
4882 int v11; // [sp+18h] [bp+8h]@1 | 4879 int v11; // [sp+18h] [bp+8h]@1 |
4883 | 4880 |
4884 v6 = a1; | 4881 v11 = abs(x2 - x1); |
4885 v10 = a2; | 4882 v8 = abs(y2 - y1); |
4886 v7 = a3 - a1; | |
4887 v11 = abs(a3 - a1); | |
4888 v8 = abs(a4 - v10); | |
4889 result = integer_sqrt(v11 * v11 + v8 * v8); | 4883 result = integer_sqrt(v11 * v11 + v8 * v8); |
4890 if ( result ) | 4884 if ( result ) |
4891 result = abs((v7 * (v10 - a6) - (a4 - v10) * (v6 - a5)) / result); | 4885 result = abs(((x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)) / result); |
4892 return result; | 4886 return result; |
4893 } | 4887 } |
4894 | 4888 |
4895 //----- (0040DEF3) -------------------------------------------------------- | 4889 //----- (0040DEF3) -------------------------------------------------------- |
4896 unsigned short TargetColor( unsigned __int16 r, unsigned __int16 g, unsigned __int16 b ) | 4890 unsigned short TargetColor( unsigned __int16 r, unsigned __int16 g, unsigned __int16 b ) |