comparison mm7_3.cpp @ 788:f004c7ceb7bd

Слияние
author Ritor1
date Mon, 25 Mar 2013 02:21:14 +0600
parents 3a77fbf7d0b8 b3e08a496778
children 1e2be0f5eb30
comparison
equal deleted inserted replaced
787:3a77fbf7d0b8 788:f004c7ceb7bd
483 } 483 }
484 return result; 484 return result;
485 } 485 }
486 486
487 //----- (0046ED1B) -------------------------------------------------------- 487 //----- (0046ED1B) --------------------------------------------------------
488 int _46ED1B_collide_against_floor(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID) 488 int collide_against_floor(int x, int y, int z, unsigned int *pSectorID, unsigned int *pFaceID)
489 { 489 {
490 uint uFaceID = -1; 490 uint uFaceID = -1;
491 int floor_level = BLV_GetFloorLevel(x, y, z, *pSectorID, &uFaceID); 491 int floor_level = BLV_GetFloorLevel(x, y, z, *pSectorID, &uFaceID);
492 492
493 if (floor_level != -30000 && floor_level <= z + 50) 493 if (floor_level != -30000 && floor_level <= z + 50)
1488 1488
1489 v5 = x - 2; 1489 v5 = x - 2;
1490 v7 = x; 1490 v7 = x;
1491 v8 = y; 1491 v8 = y;
1492 *pSectorID = pIndoor->GetSector(x - 2, y, z + 40); 1492 *pSectorID = pIndoor->GetSector(x - 2, y, z + 40);
1493 result = _46ED1B_collide_against_floor(v5, v8, z + 40, pSectorID, pFaceID); 1493 result = collide_against_floor(v5, v8, z + 40, pSectorID, pFaceID);
1494 if ( result == -30000 || !*pSectorID ) 1494 if ( result == -30000 || !*pSectorID )
1495 { 1495 {
1496 *pSectorID = pIndoor->GetSector(v7 + 2, v8, z + 40); 1496 *pSectorID = pIndoor->GetSector(v7 + 2, v8, z + 40);
1497 result = _46ED1B_collide_against_floor(v7 + 2, v8, z + 40, pSectorID, pFaceID); 1497 result = collide_against_floor(v7 + 2, v8, z + 40, pSectorID, pFaceID);
1498 if ( result == -30000 || !*pSectorID ) 1498 if ( result == -30000 || !*pSectorID )
1499 { 1499 {
1500 *pSectorID = pIndoor->GetSector(v7, v8 - 2, z + 40); 1500 *pSectorID = pIndoor->GetSector(v7, v8 - 2, z + 40);
1501 result = _46ED1B_collide_against_floor(v7, v8 - 2, z + 40, pSectorID, pFaceID); 1501 result = collide_against_floor(v7, v8 - 2, z + 40, pSectorID, pFaceID);
1502 if ( result == -30000 || !*pSectorID ) 1502 if ( result == -30000 || !*pSectorID )
1503 { 1503 {
1504 *pSectorID = pIndoor->GetSector(v7, v8 + 2, z + 40); 1504 *pSectorID = pIndoor->GetSector(v7, v8 + 2, z + 40);
1505 result = _46ED1B_collide_against_floor(v7, v8 + 2, z + 40, pSectorID, pFaceID); 1505 result = collide_against_floor(v7, v8 + 2, z + 40, pSectorID, pFaceID);
1506 if ( result == -30000 || !*pSectorID ) 1506 if ( result == -30000 || !*pSectorID )
1507 { 1507 {
1508 *pSectorID = pIndoor->GetSector(v7, v8, z + 140); 1508 *pSectorID = pIndoor->GetSector(v7, v8, z + 140);
1509 result = _46ED1B_collide_against_floor(v7, v8, z + 140, pSectorID, pFaceID); 1509 result = collide_against_floor(v7, v8, z + 140, pSectorID, pFaceID);
1510 } 1510 }
1511 } 1511 }
1512 } 1512 }
1513 } 1513 }
1514 return result; 1514 return result;
1604 uSectorID = pIndoor->GetSector(pParty->vPosition.x, pParty->vPosition.y, pParty->vPosition.z); 1604 uSectorID = pIndoor->GetSector(pParty->vPosition.x, pParty->vPosition.y, pParty->vPosition.z);
1605 v72 = 0; 1605 v72 = 0;
1606 v78 = 0; 1606 v78 = 0;
1607 v71 = 0; 1607 v71 = 0;
1608 bJumping = 0; 1608 bJumping = 0;
1609 v80 = _46ED1B_collide_against_floor(new_party_x, new_party_y, party_z + 40, &uSectorID, &uFaceID); 1609 v80 = collide_against_floor(new_party_x, new_party_y, party_z + 40, &uSectorID, &uFaceID);
1610 if ( pParty->bFlying ) 1610 if ( pParty->bFlying )
1611 { 1611 {
1612 pParty->bFlying = false; 1612 pParty->bFlying = false;
1613 if (pParty->FlyActive()) 1613 if (pParty->FlyActive())
1614 pOtherOverlayList->pOverlays[pParty->pPartyBuffs[PARTY_BUFF_FLY].uOverlayID - 1].field_E |= 1; 1614 pOtherOverlayList->pOverlays[pParty->pPartyBuffs[PARTY_BUFF_FLY].uOverlayID - 1].field_E |= 1;
1956 { 1956 {
1957 v39 = ((unsigned __int64)(stru_721530.field_7C * (signed __int64)stru_721530.field_58.x) >> 16) + new_party_x; 1957 v39 = ((unsigned __int64)(stru_721530.field_7C * (signed __int64)stru_721530.field_58.x) >> 16) + new_party_x;
1958 uSectorID = new_party_y + ((unsigned __int64)(stru_721530.field_7C * (signed __int64)stru_721530.field_58.y) >> 16); 1958 uSectorID = new_party_y + ((unsigned __int64)(stru_721530.field_7C * (signed __int64)stru_721530.field_58.y) >> 16);
1959 v40 = new_party_z + ((unsigned __int64)(stru_721530.field_7C * (signed __int64)stru_721530.field_58.z) >> 16); 1959 v40 = new_party_z + ((unsigned __int64)(stru_721530.field_7C * (signed __int64)stru_721530.field_58.z) >> 16);
1960 } 1960 }
1961 v42 = _46ED1B_collide_against_floor(v39, uSectorID, v40 + 40, &stru_721530.uSectorID, &uFaceID); 1961 v42 = collide_against_floor(v39, uSectorID, v40 + 40, &stru_721530.uSectorID, &uFaceID);
1962 if ( v42 == -30000 || v42 - new_party_z > 128 ) 1962 if ( v42 == -30000 || v42 - new_party_z > 128 )
1963 return; 1963 return;
1964 if ( stru_721530.field_7C >= stru_721530.field_6C ) 1964 if ( stru_721530.field_7C >= stru_721530.field_6C )
1965 { 1965 {
1966 new_party_x = stru_721530.normal2.x; 1966 new_party_x = stru_721530.normal2.x;
12324 12324
12325 _unused_5B5924_is_travel_ui_drawn = true; 12325 _unused_5B5924_is_travel_ui_drawn = true;
12326 } 12326 }
12327 12327
12328 //----- (00444C8F) -------------------------------------------------------- 12328 //----- (00444C8F) --------------------------------------------------------
12329 GUIWindow *__cdecl UI_CreateTravelDialogue() 12329 void UI_CreateTravelDialogue()
12330 { 12330 {
12331 //signed int v0; // eax@1 12331 //signed int v0; // eax@1
12332 unsigned int v1; // eax@6 12332 unsigned int v1; // eax@6
12333 GUIWindow *result; // eax@9 12333 GUIWindow *result; // eax@9
12334 //const char *v3; // [sp-4h] [bp-2Ch]@2 12334 //const char *v3; // [sp-4h] [bp-2Ch]@2
12349 } 12349 }
12350 strcat(pContainer, v3); 12350 strcat(pContainer, v3);
12351 LABEL_6:*/ 12351 LABEL_6:*/
12352 switch (pParty->alignment) 12352 switch (pParty->alignment)
12353 { 12353 {
12354 case PartyAlignment_Good: sprintf(pContainer, "evt%02d-b", const_2()); 12354 case PartyAlignment_Good: sprintf(pContainer, "evt%02d-b", const_2()); break;
12355 case PartyAlignment_Neutral: sprintf(pContainer, "evt%02d", const_2()); 12355 case PartyAlignment_Neutral: sprintf(pContainer, "evt%02d", const_2()); break;
12356 case PartyAlignment_Evil: sprintf(pContainer, "evt%02d-c", const_2()); 12356 case PartyAlignment_Evil: sprintf(pContainer, "evt%02d-c", const_2()); break;
12357 default: assert(false); 12357 default: assert(false);
12358 } 12358 }
12359 12359
12360 pTexture_Dialogue_Background = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE)]; 12360 pTexture_Dialogue_Background = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture(pContainer, TEXTURE_16BIT_PALETTE)];
12361 pTexture_outside = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("outside", TEXTURE_16BIT_PALETTE)]; 12361 pTexture_outside = &pIcons_LOD->pTextures[pIcons_LOD->LoadTexture("outside", TEXTURE_16BIT_PALETTE)];
12362 v1 = pMapStats->GetMapInfo(pCurrentMapName); 12362 v1 = pMapStats->GetMapInfo(pCurrentMapName);
12363 if ( v1 ) 12363 if ( v1 )
12364 sprintf(sHouseName, pGlobalTXT_LocalizationStrings[410], pMapStats->pInfos[v1].pName);// "Leave %s" 12364 sprintf(sHouseName, pGlobalTXT_LocalizationStrings[410], pMapStats->pInfos[v1].pName);// "Leave %s"
12365 else 12365 else
12366 strcpy(sHouseName, pGlobalTXT_LocalizationStrings[79]);// "Exit" 12366 strcpy(sHouseName, pGlobalTXT_LocalizationStrings[79]);// "Exit"
12367 result = GUIWindow::Create(0, 0, 640, 480, WINDOW_ChangeLocation, 0, (int)sHouseName); 12367 pDialogueWindow = GUIWindow::Create(0, 0, 640, 480, WINDOW_ChangeLocation, 0, (int)sHouseName);
12368 pDialogueWindow = result;
12369 return result;
12370 } 12368 }
12371 12369
12372 //----- (00444D80) -------------------------------------------------------- 12370 //----- (00444D80) --------------------------------------------------------
12373 signed int __cdecl GetTravelTime() 12371 signed int __cdecl GetTravelTime()
12374 { 12372 {
12392 //----- (00444DCA) -------------------------------------------------------- 12390 //----- (00444DCA) --------------------------------------------------------
12393 void __cdecl TravelUI_Draw() 12391 void __cdecl TravelUI_Draw()
12394 { 12392 {
12395 unsigned int v0; // edi@1 12393 unsigned int v0; // edi@1
12396 MapInfo *v1; // edi@2 12394 MapInfo *v1; // edi@2
12397 char *v2; // ST14_4@2
12398 signed int v3; // eax@2 12395 signed int v3; // eax@2
12399 int v4; // eax@5 12396 int v4; // eax@5
12400 const char *v5; // [sp-Ch] [bp-90h]@3 12397 const char *v5; // [sp-Ch] [bp-90h]@3
12401 signed int v6; // [sp-8h] [bp-8Ch]@3 12398 signed int v6; // [sp-8h] [bp-8Ch]@3
12402 GUIWindow v7; // [sp+Ch] [bp-78h]@1 12399 GUIWindow v7; // [sp+Ch] [bp-78h]@1
12408 pOutdoor->GetTravelDestination(pParty->vPosition.x, pParty->vPosition.y, pDestinationMapName, 20); 12405 pOutdoor->GetTravelDestination(pParty->vPosition.x, pParty->vPosition.y, pDestinationMapName, 20);
12409 v0 = pMapStats->GetMapInfo(pDestinationMapName); 12406 v0 = pMapStats->GetMapInfo(pDestinationMapName);
12410 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background); 12407 pRenderer->DrawTextureIndexed(0x1DDu, 0, pTexture_Dialogue_Background);
12411 pRenderer->DrawTextureTransparent(0x1D4u, 0, &pIcons_LOD->pTextures[uTextureID_507B04]); 12408 pRenderer->DrawTextureTransparent(0x1D4u, 0, &pIcons_LOD->pTextures[uTextureID_507B04]);
12412 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pTexture_outside); 12409 pRenderer->DrawTextureIndexed(pNPCPortraits_x[0][0], pNPCPortraits_y[0][0], pTexture_outside);
12413 pRenderer->DrawTextureIndexed(0x22Cu, 0x1C3u, &pIcons_LOD->pTextures[uTextureID_x_x_u]); 12410 pRenderer->DrawTextureIndexed(0x22Cu, 0x1C3u, pIcons_LOD->GetTexture(uTextureID_x_x_u));
12414 pRenderer->DrawTextureIndexed(0x1DCu, 0x1C3u, 12411 pRenderer->DrawTextureIndexed(0x1DCu, 0x1C3u, pIcons_LOD->GetTexture(uTextureID_x_ok_u));
12415 (Texture *)(uTextureID_x_ok_u != -1 ? (int)&pIcons_LOD->pTextures[uTextureID_x_ok_u] : 0));
12416 if ( v0 ) 12412 if ( v0 )
12417 { 12413 {
12418 v1 = &pMapStats->pInfos[v0]; 12414 v1 = &pMapStats->pInfos[v0];
12419 v7.uFrameX = 493; 12415 v7.uFrameX = 493;
12420 v7.uFrameWidth = 126; 12416 v7.uFrameWidth = 126;
12421 v2 = v1->pName;
12422 v7.uFrameZ = 366; 12417 v7.uFrameZ = 366;
12423 v7.DrawTitleText(pFontCreate, 0, 4u, 0, v2, 3u); 12418 v7.DrawTitleText(pFontCreate, 0, 4u, 0, v1->pName, 3);
12424 v7.uFrameX = 483; 12419 v7.uFrameX = 483;
12425 v7.uFrameWidth = 148; 12420 v7.uFrameWidth = 148;
12426 v7.uFrameZ = 334; 12421 v7.uFrameZ = 334;
12427 v3 = GetTravelTime(); 12422 v3 = GetTravelTime();
12428 if ( v3 == 1 ) 12423 if ( v3 == 1 )
12480 if ( pGUIWindow2->field_40 != 1 ) 12475 if ( pGUIWindow2->field_40 != 1 )
12481 { 12476 {
12482 if ( pGUIWindow2->field_40 == 2 ) 12477 if ( pGUIWindow2->field_40 == 2 )
12483 { 12478 {
12484 pGUIWindow2->field_40 = 0; 12479 pGUIWindow2->field_40 = 0;
12485 strcpy(GameUI_StatusBar_TimedString, (const char *)pKeyActionMap->pPressedKeysBuffer); 12480 strcpy(GameUI_Footer_TimedString, (const char *)pKeyActionMap->pPressedKeysBuffer);
12486 LABEL_16: 12481 LABEL_16:
12487 sub_4452BB(); 12482 sub_4452BB();
12488 return; 12483 return;
12489 } 12484 }
12490 if ( pGUIWindow2->field_40 != 3 ) 12485 if ( pGUIWindow2->field_40 != 3 )
12491 return; 12486 return;
12492 pGUIWindow2->field_40 = 0; 12487 pGUIWindow2->field_40 = 0;
12493 LABEL_15: 12488 LABEL_15:
12494 memset(GameUI_StatusBar_TimedString, 0, 0xC8u); 12489 memset(GameUI_Footer_TimedString, 0, 0xC8u);
12495 goto LABEL_16; 12490 goto LABEL_16;
12496 } 12491 }
12497 if ( pGUIWindow2->ptr_1C == (void *)26 ) 12492 if ( pGUIWindow2->ptr_1C == (void *)26 )
12498 { 12493 {
12499 sprintf(Str, "%s %s", GameUI_StatusBar_TimedString, pKeyActionMap->pPressedKeysBuffer); 12494 sprintf(Str, "%s %s", GameUI_Footer_TimedString, pKeyActionMap->pPressedKeysBuffer);
12500 v3 = pFontLucida->GetLineWidth(Str); 12495 v3 = pFontLucida->GetLineWidth(Str);
12501 pGUIWindow2->DrawText(pFontLucida, 13, 357, 0, Str, 0, 0, 0); 12496 pGUIWindow2->DrawText(pFontLucida, 13, 357, 0, Str, 0, 0, 0);
12502 pGUIWindow2->DrawFlashingInputCursor(v3 + 13, 357, pFontLucida); 12497 pGUIWindow2->DrawFlashingInputCursor(v3 + 13, 357, pFontLucida);
12503 return; 12498 return;
12504 } 12499 }
13520 } 13515 }
13521 13516
13522 //----- (00448B45) -------------------------------------------------------- 13517 //----- (00448B45) --------------------------------------------------------
13523 void __thiscall GameUI_StatusBar_UpdateTimedString(unsigned int bForceHide) 13518 void __thiscall GameUI_StatusBar_UpdateTimedString(unsigned int bForceHide)
13524 { 13519 {
13525 if ( bForceHide || GameUI_StatusBar_TimedStringTimeLeft && GetTickCount() >= GameUI_StatusBar_TimedStringTimeLeft ) 13520 if ( bForceHide || GameUI_Footer_TimeLeft && GetTickCount() >= GameUI_Footer_TimeLeft )
13526 GameUI_StatusBar_TimedStringTimeLeft = 0; 13521 GameUI_Footer_TimeLeft = 0;
13527 } 13522 }
13528 13523
13529 //----- (00448B67) -------------------------------------------------------- 13524 //----- (00448B67) --------------------------------------------------------
13530 void __thiscall OnTimer(int a1) 13525 void __thiscall OnTimer(int a1)
13531 { 13526 {
14238 pAudioPlayer->PlaySound((SoundID)word_4EE088_sound_ids[spellnum], 0, 0, fromx, fromy, 0, 0, 0); 14233 pAudioPlayer->PlaySound((SoundID)word_4EE088_sound_ids[spellnum], 0, 0, fromx, fromy, 0, 0, 0);
14239 } 14234 }
14240 // 4EE088: using guessed type __int16 word_4EE088_sound_ids[]; 14235 // 4EE088: using guessed type __int16 word_4EE088_sound_ids[];
14241 14236
14242 //----- (0044987B) -------------------------------------------------------- 14237 //----- (0044987B) --------------------------------------------------------
14243 char *__fastcall sub_44987B(const char *pMapName, unsigned int uStartingPointType) 14238 void sub_44987B(const char *pMapName, MapStartPoint start_point)
14244 { 14239 {
14245 const char *v2; // edi@1 14240 const char *v2; // edi@1
14246 unsigned int v3; // ebx@1
14247 char *result; // eax@3
14248 14241
14249 v2 = pMapName; 14242 v2 = pMapName;
14250 v3 = uStartingPointType;
14251 pAudioPlayer->StopChannels(-1, -1); 14243 pAudioPlayer->StopChannels(-1, -1);
14252 pGameLoadingUI_ProgressBar->Initialize(GUIProgressBar::TYPE_None); 14244 pGameLoadingUI_ProgressBar->Initialize(GUIProgressBar::TYPE_None);
14253 if ( _strcmpi(pCurrentMapName, v2) ) 14245 if ( _strcmpi(pCurrentMapName, v2) )
14254 SaveGame(1, 0); 14246 SaveGame(1, 0);
14247
14255 uGameState = 2; 14248 uGameState = 2;
14256 result = strcpy(pCurrentMapName, v2); 14249 strcpy(pCurrentMapName, v2);
14257 uLevel_StartingPointType = v3; 14250 uLevel_StartingPointType = start_point;
14258 return result;
14259 } 14251 }
14260 // 6BE35C: using guessed type int uLevel_StartingPointType; 14252 // 6BE35C: using guessed type int uLevel_StartingPointType;
14261 14253
14262 //----- (004498D5) -------------------------------------------------------- 14254 //----- (004498D5) --------------------------------------------------------
14263 void __thiscall TeleportToStartingPoint(unsigned int uPointType) 14255 void TeleportToStartingPoint(MapStartPoint point)
14264 { 14256 {
14265 unsigned int v1; // ecx@2 14257 //unsigned int v1; // ecx@2
14266 int v2; // ecx@3 14258 //int v2; // ecx@3
14267 int v3; // ecx@4 14259 //int v3; // ecx@4
14268 unsigned __int16 v4; // ax@11 14260 unsigned __int16 v4; // ax@11
14269 signed int v5; // ecx@12 14261 signed int v5; // ecx@12
14270 LevelDecoration *v6; // edx@13 14262 LevelDecoration *v6; // edx@13
14271 signed int v7; // ecx@17 14263 signed int v7; // ecx@17
14272 int v8; // eax@17 14264 int v8; // eax@17
14273 int v9; // ecx@17 14265 int v9; // ecx@17
14274 const char *v10; // [sp-4h] [bp-84h]@6 14266 const char *v10; // [sp-4h] [bp-84h]@6
14275 char pName[128]; // [sp+8h] [bp-78h]@11 14267 char pName[128]; // [sp+8h] [bp-78h]@11
14276 14268
14277 if ( uPointType ) 14269 switch (point)
14278 { 14270 {
14279 v1 = uPointType - 1; 14271 case MapStartPoint_Party: v10 = "Party Start"; break;
14280 if ( v1 ) 14272 case MapStartPoint_North: v10 = "North Start"; break;
14281 { 14273 case MapStartPoint_South: v10 = "South Start"; break;
14282 v2 = v1 - 1; 14274 case MapStartPoint_East: v10 = "East Start"; break;
14283 if ( v2 ) 14275 case MapStartPoint_West: v10 = "West Start"; break;
14284 { 14276 }
14285 v3 = v2 - 1; 14277
14286 if ( v3 )
14287 {
14288 if ( v3 != 1 )
14289 return;
14290 v10 = "West Start";
14291 }
14292 else
14293 {
14294 v10 = "East Start";
14295 }
14296 }
14297 else
14298 {
14299 v10 = "South Start";
14300 }
14301 }
14302 else
14303 {
14304 v10 = "North Start";
14305 }
14306 }
14307 else
14308 {
14309 v10 = "Party Start";
14310 }
14311 strcpy(pName, v10); 14278 strcpy(pName, v10);
14312 v4 = pDecorationList->GetDecorIdByName(pName); 14279 v4 = pDecorationList->GetDecorIdByName(pName);
14313 if ( v4 ) 14280 if ( v4 )
14314 { 14281 {
14315 v5 = 0; 14282 v5 = 0;
14507 { 14474 {
14508 unsigned int v2; // esi@1 14475 unsigned int v2; // esi@1
14509 int i; // eax@1 14476 int i; // eax@1
14510 14477
14511 v2 = uNumSeconds; 14478 v2 = uNumSeconds;
14512 strcpy(GameUI_StatusBar_TimedString, pString); 14479 strcpy(GameUI_Footer_TimedString, pString);
14513 GameUI_StatusBar_TimedStringTimeLeft = 1000 * v2 + GetTickCount(); 14480 GameUI_Footer_TimeLeft = 1000 * v2 + GetTickCount();
14514 for ( i = pFontLucida->GetLineWidth(GameUI_StatusBar_TimedString); 14481 for ( i = pFontLucida->GetLineWidth(GameUI_Footer_TimedString);
14515 i > 450; 14482 i > 450;
14516 i = pFontLucida->GetLineWidth(GameUI_StatusBar_TimedString) ) 14483 i = pFontLucida->GetLineWidth(GameUI_Footer_TimedString) )
14517 byte_5C3427[strlen(GameUI_StatusBar_TimedString)] = 0; 14484 byte_5C3427[strlen(GameUI_Footer_TimedString)] = 0;
14518 } 14485 }
14519 14486
14520 //----- (0044C1D0) -------------------------------------------------------- 14487 //----- (0044C1D0) --------------------------------------------------------
14521 void __cdecl ShowNothingHereStatus() 14488 void __cdecl ShowNothingHereStatus()
14522 { 14489 {
14523 if ( !GameUI_StatusBar_TimedStringTimeLeft ) 14490 if ( !GameUI_Footer_TimeLeft )
14524 ShowStatusBarString(pGlobalTXT_LocalizationStrings[521], 2u);// Nothing here 14491 ShowStatusBarString(pGlobalTXT_LocalizationStrings[521], 2u);// Nothing here
14525 } 14492 }
14526 14493
14527 //----- (0044C28B) -------------------------------------------------------- 14494 //----- (0044C28B) --------------------------------------------------------
14528 signed int __cdecl const_2() 14495 signed int __cdecl const_2()
14544 _5B65B4_npcdata_loword_house_or_other = 0; 14511 _5B65B4_npcdata_loword_house_or_other = 0;
14545 _5B65B8_npcdata_hiword_house_or_other = 0; 14512 _5B65B8_npcdata_hiword_house_or_other = 0;
14546 dword_5B65BC = 0; 14513 dword_5B65BC = 0;
14547 dword_5B65C0 = 0; 14514 dword_5B65C0 = 0;
14548 pGameLoadingUI_ProgressBar->uType = GUIProgressBar::TYPE_Fullscreen; 14515 pGameLoadingUI_ProgressBar->uType = GUIProgressBar::TYPE_Fullscreen;
14549 sub_44987B("nwc.blv", 0); 14516 sub_44987B("nwc.blv", MapStartPoint_Party);
14550 pCurrentScreen = SCREEN_GAME; 14517 pCurrentScreen = SCREEN_GAME;
14551 result = 1; 14518 result = 1;
14552 } 14519 }
14553 return result; 14520 return result;
14554 } 14521 }
15019 return v34; 14986 return v34;
15020 } 14987 }
15021 // 4F75D8: using guessed type int ai_arrays_size; 14988 // 4F75D8: using guessed type int ai_arrays_size;
15022 14989
15023 //----- (00401A91) -------------------------------------------------------- 14990 //----- (00401A91) --------------------------------------------------------
15024 void __cdecl sub_401A91_AI() 14991 void __cdecl UpdateActorAI()
15025 { 14992 {
15026 //unsigned int v0; // esi@4 14993 //unsigned int v0; // esi@4
15027 int v1; // eax@7 14994 int v1; // eax@7
15028 int v2; // ecx@7 14995 int v2; // ecx@7
15029 int v3; // eax@7 14996 int v3; // eax@7