Mercurial > mm7
comparison mm7_3.cpp @ 791:346f7069676a
Indoor::GetSector and various stuff
author | Nomad |
---|---|
date | Mon, 25 Mar 2013 05:27:18 +0200 |
parents | 1e2be0f5eb30 |
children | 41b4e9769863 |
comparison
equal
deleted
inserted
replaced
790:1e2be0f5eb30 | 791:346f7069676a |
---|---|
7754 } | 7754 } |
7755 return y3 - v10 > 512;*/ | 7755 return y3 - v10 > 512;*/ |
7756 } | 7756 } |
7757 | 7757 |
7758 //----- (0048257A) -------------------------------------------------------- | 7758 //----- (0048257A) -------------------------------------------------------- |
7759 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *a3, int a4) | 7759 int __fastcall GetTerrainHeightsAroundParty2(int a1, int a2, int *pIsOnWater, int a4) |
7760 { | 7760 { |
7761 unsigned int v4; // ebx@1 | 7761 unsigned int v4; // ebx@1 |
7762 unsigned int v5; // edi@1 | 7762 unsigned int v5; // edi@1 |
7763 int result; // eax@9 | 7763 int result; // eax@9 |
7764 int v7; // ebx@10 | 7764 int v7; // ebx@10 |
7785 dword_76D534_terrain_cell_world_pos_around_party_z = GridCellToWorldPosZ(v5 + 1); | 7785 dword_76D534_terrain_cell_world_pos_around_party_z = GridCellToWorldPosZ(v5 + 1); |
7786 dword_76D518_terrain_cell_world_pos_around_party_y = pOutdoor->DoGetHeightOnTerrain(v4, v5); | 7786 dword_76D518_terrain_cell_world_pos_around_party_y = pOutdoor->DoGetHeightOnTerrain(v4, v5); |
7787 dword_76D51C_terrain_cell_world_pos_around_party_y = pOutdoor->DoGetHeightOnTerrain(v4 + 1, v5); | 7787 dword_76D51C_terrain_cell_world_pos_around_party_y = pOutdoor->DoGetHeightOnTerrain(v4 + 1, v5); |
7788 dword_76D520_terrain_cell_world_pos_around_party_y = pOutdoor->DoGetHeightOnTerrain(v4 + 1, v5 + 1); | 7788 dword_76D520_terrain_cell_world_pos_around_party_y = pOutdoor->DoGetHeightOnTerrain(v4 + 1, v5 + 1); |
7789 dword_76D524_terrain_cell_world_pos_around_party_y = pOutdoor->DoGetHeightOnTerrain(v4, v5 + 1); | 7789 dword_76D524_terrain_cell_world_pos_around_party_y = pOutdoor->DoGetHeightOnTerrain(v4, v5 + 1); |
7790 *a3 = 0; | 7790 *pIsOnWater = false; |
7791 if ( pOutdoor->ActuallyGetSomeOtherTileInfo(v4, v5) & 2 ) | 7791 if ( pOutdoor->ActuallyGetSomeOtherTileInfo(v4, v5) & 2 ) |
7792 *a3 = 1; | 7792 *pIsOnWater = true; |
7793 v14 = 0; | 7793 v14 = 0; |
7794 if ( !a4 && *a3 ) | 7794 if ( !a4 && *pIsOnWater ) |
7795 v14 = -60; | 7795 v14 = -60; |
7796 if ( dword_76D518_terrain_cell_world_pos_around_party_y != dword_76D51C_terrain_cell_world_pos_around_party_y | 7796 if ( dword_76D518_terrain_cell_world_pos_around_party_y != dword_76D51C_terrain_cell_world_pos_around_party_y |
7797 || dword_76D51C_terrain_cell_world_pos_around_party_y != dword_76D520_terrain_cell_world_pos_around_party_y | 7797 || dword_76D51C_terrain_cell_world_pos_around_party_y != dword_76D520_terrain_cell_world_pos_around_party_y |
7798 || dword_76D520_terrain_cell_world_pos_around_party_y != dword_76D524_terrain_cell_world_pos_around_party_y ) | 7798 || dword_76D520_terrain_cell_world_pos_around_party_y != dword_76D524_terrain_cell_world_pos_around_party_y ) |
7799 { | 7799 { |