Mercurial > mm7
comparison Outdoor.cpp @ 1297:5450af4f57ef
moving files mm7_x ending
author | Ritor1 |
---|---|
date | Wed, 19 Jun 2013 17:06:58 +0600 |
parents | 86a83e12d795 |
children | 13b7be8b06a0 |
comparison
equal
deleted
inserted
replaced
1296:c423f946dc99 | 1297:5450af4f57ef |
---|---|
35 | 35 |
36 | 36 |
37 #include "MapInfo.h" | 37 #include "MapInfo.h" |
38 #include "OutdoorCamera.h" | 38 #include "OutdoorCamera.h" |
39 #include "BSPModel.h" | 39 #include "BSPModel.h" |
40 #include "GUIWindow.h" | |
40 | 41 |
41 MapStartPoint uLevel_StartingPointType; // weak | 42 MapStartPoint uLevel_StartingPointType; // weak |
42 | 43 |
43 OutdoorLocation *pOutdoor = new OutdoorLocation; | 44 OutdoorLocation *pOutdoor = new OutdoorLocation; |
44 OutdoorCamera *pOutdoorCamera; | 45 OutdoorCamera *pOutdoorCamera; |
3546 ai_arrays_size = 30; | 3547 ai_arrays_size = 30; |
3547 | 3548 |
3548 for (uint i = 0; i < ai_arrays_size; ++i) | 3549 for (uint i = 0; i < ai_arrays_size; ++i) |
3549 pActors[ai_near_actors_ids[i]].uAttributes |= 0x0400; | 3550 pActors[ai_near_actors_ids[i]].uAttributes |= 0x0400; |
3550 } | 3551 } |
3552 //----- (0046BE0A) -------------------------------------------------------- | |
3553 void __cdecl ODM_UpdateUserInputAndOther() | |
3554 { | |
3555 bool v0; // eax@5 | |
3556 char pOut[32]; // [sp+8h] [bp-20h]@5 | |
3557 | |
3558 UpdateObjects(); | |
3559 ODM_ProcessPartyActions(); | |
3560 if ( pParty->vPosition.x < -22528 | |
3561 || pParty->vPosition.x > 22528 | |
3562 || pParty->vPosition.y < -22528 | |
3563 || pParty->vPosition.y > 22528 ) | |
3564 { | |
3565 strcpy(pOutdoor->pLevelFilename, pCurrentMapName.data()); | |
3566 v0 = pOutdoor->GetTravelDestination(pParty->vPosition.x, pParty->vPosition.y, pOut, 32); | |
3567 if ( !bUnderwater && (pParty->uFlags & (PARTY_FLAGS_1_STANDING_ON_WATER | PARTY_FLAGS_1_FALLING | 0x04) || pParty->uFlags & 0x0200 || pParty->bFlying) || !v0 ) | |
3568 { | |
3569 if ( pParty->vPosition.x < -22528 ) | |
3570 pParty->vPosition.x = -22528; | |
3571 if ( pParty->vPosition.x > 22528 ) | |
3572 pParty->vPosition.x = 22528; | |
3573 if ( pParty->vPosition.y < -22528 ) | |
3574 pParty->vPosition.y = -22528; | |
3575 if ( pParty->vPosition.y > 22528 ) | |
3576 pParty->vPosition.y = 22528; | |
3577 } | |
3578 else | |
3579 { | |
3580 pAudioPlayer->StopChannels(-1, -1); | |
3581 TravelUI_Load(); | |
3582 } | |
3583 } | |
3584 UpdateActors_ODM(); | |
3585 check_event_triggers(); | |
3586 } | |
3587 //----- (0041F54A) -------------------------------------------------------- | |
3588 void __cdecl LoadActualSkyFrame() | |
3589 { | |
3590 if ( pTexture_RestUI_CurrentSkyFrame ) | |
3591 pTexture_RestUI_CurrentSkyFrame->Release(); | |
3592 if ( pTexture_RestUI_CurrentHourglassFrame ) | |
3593 pTexture_RestUI_CurrentHourglassFrame->Release(); | |
3594 pIcons_LOD->SyncLoadedFilesCount(); | |
3595 sprintf(pTmpBuf.data(), "TERRA%03d", pParty->uCurrentMinute / 6 + 10 * pParty->uCurrentHour); | |
3596 pTexture_RestUI_CurrentSkyFrame = pIcons_LOD->LoadTexturePtr(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); | |
3597 } |