Mercurial > mm7
comparison mm7_5.cpp @ 839:ae8f83e1b0cf
coordinates for the town portal
author | x1diablo |
---|---|
date | Thu, 28 Mar 2013 20:14:14 +0200 |
parents | d061180f2b42 |
children | ceef50611567 |
comparison
equal
deleted
inserted
replaced
838:d061180f2b42 | 839:ae8f83e1b0cf |
---|---|
2085 { | 2085 { |
2086 LABEL_486: | 2086 LABEL_486: |
2087 SaveGame(v0, 0); | 2087 SaveGame(v0, 0); |
2088 v64 = pMapStats->GetMapInfo(pCurrentMapName); | 2088 v64 = pMapStats->GetMapInfo(pCurrentMapName); |
2089 v65 = uMessageParam; | 2089 v65 = uMessageParam; |
2090 if ( v64 == stru_4ECBB8[uMessageParam].uMapInfoID ) | 2090 if ( v64 == TownPortalList[uMessageParam].uMapInfoID ) |
2091 { | 2091 { |
2092 pParty->vPosition.x = stru_4ECBB8[v65].pos.x; | 2092 pParty->vPosition.x = TownPortalList[v65].pos.x; |
2093 pParty->vPosition.y = stru_4ECBB8[v65].pos.y; | 2093 pParty->vPosition.y = TownPortalList[v65].pos.y; |
2094 pParty->vPosition.z = stru_4ECBB8[v65].pos.z; | 2094 pParty->vPosition.z = TownPortalList[v65].pos.z; |
2095 pParty->uFallStartY = pParty->vPosition.z; | 2095 pParty->uFallStartY = pParty->vPosition.z; |
2096 pParty->sRotationY = stru_4ECBB8[v65].rot_y; | 2096 pParty->sRotationY = TownPortalList[v65].rot_y; |
2097 pParty->sRotationX = stru_4ECBB8[v65].rot_x; | 2097 pParty->sRotationX = TownPortalList[v65].rot_x; |
2098 } | 2098 } |
2099 else | 2099 else |
2100 { | 2100 { |
2101 SaveGame(v0, 0); | 2101 SaveGame(v0, 0); |
2102 OnMapLeave(); | 2102 OnMapLeave(); |
2103 dword_6BE364_game_settings_1 |= v0; | 2103 dword_6BE364_game_settings_1 |= v0; |
2104 uGameState = 2; | 2104 uGameState = 2; |
2105 strcpy(pCurrentMapName, pMapStats->pInfos[stru_4ECBB8[uMessageParam].uMapInfoID].pFilename); | 2105 strcpy(pCurrentMapName, pMapStats->pInfos[TownPortalList[uMessageParam].uMapInfoID].pFilename); |
2106 dword_5B65C0 = v0; | 2106 dword_5B65C0 = v0; |
2107 _5B65A8_npcdata_uflags_or_other = stru_4ECBB8[uMessageParam].pos.x; | 2107 _5B65A8_npcdata_uflags_or_other = TownPortalList[uMessageParam].pos.x; |
2108 _5B65AC_npcdata_fame_or_other = stru_4ECBB8[uMessageParam].pos.y; | 2108 _5B65AC_npcdata_fame_or_other = TownPortalList[uMessageParam].pos.y; |
2109 _5B65B0_npcdata_rep_or_other = stru_4ECBB8[uMessageParam].pos.z; | 2109 _5B65B0_npcdata_rep_or_other = TownPortalList[uMessageParam].pos.z; |
2110 v66 = stru_4ECBB8[uMessageParam].rot_x; | 2110 v66 = TownPortalList[uMessageParam].rot_x; |
2111 _5B65B4_npcdata_loword_house_or_other = stru_4ECBB8[uMessageParam].rot_y; | 2111 _5B65B4_npcdata_loword_house_or_other = TownPortalList[uMessageParam].rot_y; |
2112 _5B65B8_npcdata_hiword_house_or_other = v66; | 2112 _5B65B8_npcdata_hiword_house_or_other = v66; |
2113 InitializeActors(); | 2113 InitializeActors(); |
2114 } | 2114 } |
2115 v67 = pGUIWindow_CurrentMenu->Hint; | 2115 v67 = pGUIWindow_CurrentMenu->Hint; |
2116 if ( v67 ) | 2116 if ( v67 ) |