Mercurial > mm7
comparison mm7_3.cpp @ 910:8cd0b155bebe
Rings
author | Ritor1 |
---|---|
date | Mon, 22 Apr 2013 17:34:36 +0600 |
parents | d3228f46ef68 |
children | 34ed2d5e7cfb |
comparison
equal
deleted
inserted
replaced
909:becbb0b11b7d | 910:8cd0b155bebe |
---|---|
11493 pCurrentScreen > SCREEN_VIDEO && pCurrentScreen <= SCREEN_INPUT_BLV || pCurrentScreen == SCREEN_CASTING; | 11493 pCurrentScreen > SCREEN_VIDEO && pCurrentScreen <= SCREEN_INPUT_BLV || pCurrentScreen == SCREEN_CASTING; |
11494 } | 11494 } |
11495 // 4E28F8: using guessed type int pCurrentScreen; | 11495 // 4E28F8: using guessed type int pCurrentScreen; |
11496 | 11496 |
11497 //----- (00441A4E) -------------------------------------------------------- | 11497 //----- (00441A4E) -------------------------------------------------------- |
11498 __int16 __fastcall sub_441A4E(int a1) | 11498 __int16 __fastcall sub_441A4E(int a1)//for blessing |
11499 { | 11499 { |
11500 __int16 result; // ax@1 | 11500 __int16 result; // ax@1 |
11501 int v2; // ebx@1 | 11501 int v2; // ebx@1 |
11502 char *v3; // esi@1 | 11502 char *v3; // esi@1 |
11503 int v4; // edi@4 | 11503 int v4; // edi@4 |
12249 v10 = pMapStats->GetMapInfo(pCurrentMapName); | 12249 v10 = pMapStats->GetMapInfo(pCurrentMapName); |
12250 v9 = IndoorLocation::GetLocationIndex(dword_591164_teleport_map_name); | 12250 v9 = IndoorLocation::GetLocationIndex(dword_591164_teleport_map_name); |
12251 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); | 12251 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); |
12252 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0] - 4, pNPCPortraits_y[0][0] - 4, pIcons_LOD->GetTexture(uTextureID_50795C)); | 12252 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0] - 4, pNPCPortraits_y[0][0] - 4, pIcons_LOD->GetTexture(uTextureID_50795C)); |
12253 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pTexture_outside); | 12253 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pTexture_outside); |
12254 uTextureID_507B04 = uTextureID_right_panel; | 12254 uTextureID_right_panel_loop = uTextureID_right_panel; |
12255 pRenderer->DrawTextureTransparent(468, 0, pIcons_LOD->GetTexture(uTextureID_right_panel)); | 12255 pRenderer->DrawTextureTransparent(468, 0, pIcons_LOD->GetTexture(uTextureID_right_panel)); |
12256 pRenderer->DrawTextureIndexed(556, 451, pIcons_LOD->GetTexture(uTextureID_x_x_u)); | 12256 pRenderer->DrawTextureIndexed(556, 451, pIcons_LOD->GetTexture(uTextureID_x_x_u)); |
12257 pRenderer->DrawTextureIndexed(476, 451, pIcons_LOD->GetTexture(uTextureID_x_ok_u)); | 12257 pRenderer->DrawTextureIndexed(476, 451, pIcons_LOD->GetTexture(uTextureID_x_ok_u)); |
12258 if ( (pVideoPlayer->AnyMovieLoaded() || v9) && *dword_591164_teleport_map_name != ' ' ) | 12258 if ( (pVideoPlayer->AnyMovieLoaded() || v9) && *dword_591164_teleport_map_name != ' ' ) |
12259 v10 = pMapStats->GetMapInfo(dword_591164_teleport_map_name); | 12259 v10 = pMapStats->GetMapInfo(dword_591164_teleport_map_name); |
12362 memcpy(&v7, pPrimaryWindow, sizeof(v7)); | 12362 memcpy(&v7, pPrimaryWindow, sizeof(v7)); |
12363 v9 = pMapStats->GetMapInfo(pCurrentMapName); | 12363 v9 = pMapStats->GetMapInfo(pCurrentMapName); |
12364 pOutdoor->GetTravelDestination(pParty->vPosition.x, pParty->vPosition.y, pDestinationMapName, 20); | 12364 pOutdoor->GetTravelDestination(pParty->vPosition.x, pParty->vPosition.y, pDestinationMapName, 20); |
12365 v0 = pMapStats->GetMapInfo(pDestinationMapName); | 12365 v0 = pMapStats->GetMapInfo(pDestinationMapName); |
12366 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); | 12366 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); |
12367 pRenderer->DrawTextureTransparent(0x1D4u, 0, &pIcons_LOD->pTextures[uTextureID_507B04]); | 12367 pRenderer->DrawTextureTransparent(0x1D4u, 0, &pIcons_LOD->pTextures[uTextureID_right_panel_loop]); |
12368 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pTexture_outside); | 12368 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pTexture_outside); |
12369 pRenderer->DrawTextureIndexed(0x22Cu, 0x1C3u, pIcons_LOD->GetTexture(uTextureID_x_x_u)); | 12369 pRenderer->DrawTextureIndexed(0x22Cu, 0x1C3u, pIcons_LOD->GetTexture(uTextureID_x_x_u)); |
12370 pRenderer->DrawTextureIndexed(0x1DCu, 0x1C3u, pIcons_LOD->GetTexture(uTextureID_x_ok_u)); | 12370 pRenderer->DrawTextureIndexed(0x1DCu, 0x1C3u, pIcons_LOD->GetTexture(uTextureID_x_ok_u)); |
12371 if ( v0 ) | 12371 if ( v0 ) |
12372 { | 12372 { |
12583 //v54 = v1; | 12583 //v54 = v1; |
12584 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); | 12584 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xFFu, 0xFFu, 0xFFu); |
12585 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xE1u, 0xCDu, 0x23u); | 12585 GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0xE1u, 0xCDu, 0x23u); |
12586 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0x15u, 0x99u, 0xE9u); | 12586 v2 = GenerateColorAsCloseAsPossibleToR8G8B8InTargetFormat(0x15u, 0x99u, 0xE9u); |
12587 pRenderer->DrawTextureIndexed(477, 0, pTexture_Dialogue_Background); | 12587 pRenderer->DrawTextureIndexed(477, 0, pTexture_Dialogue_Background); |
12588 pRenderer->DrawTextureTransparent(468, 0, (Texture *)(uTextureID_507B04 != -1 ? &pIcons_LOD->pTextures[uTextureID_507B04] : 0)); | 12588 pRenderer->DrawTextureTransparent(468, 0, (Texture *)(uTextureID_right_panel_loop != -1 ? &pIcons_LOD->pTextures[uTextureID_right_panel_loop] : 0)); |
12589 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0] - 4, pNPCPortraits_y[0][0] - 4, (Texture *)(uTextureID_50795C != -1 ? &pIcons_LOD->pTextures[uTextureID_50795C] : 0)); | 12589 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0] - 4, pNPCPortraits_y[0][0] - 4, (Texture *)(uTextureID_50795C != -1 ? &pIcons_LOD->pTextures[uTextureID_50795C] : 0)); |
12590 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pDialogueNPCPortraits[0]); | 12590 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pDialogueNPCPortraits[0]); |
12591 | 12591 |
12592 if (pNPC->uProfession) | 12592 if (pNPC->uProfession) |
12593 { | 12593 { |