Mercurial > mm7
diff Outdoor.cpp @ 2003:72af4d93bdfb
DoGetHeightOnTerrain -1 signed fix
author | zipi |
---|---|
date | Tue, 05 Nov 2013 23:59:54 +0000 |
parents | c1c74df0a33e |
children | 30c2b575d25c |
line wrap: on
line diff
--- a/Outdoor.cpp Tue Nov 05 23:35:21 2013 +0000 +++ b/Outdoor.cpp Tue Nov 05 23:59:54 2013 +0000 @@ -239,11 +239,11 @@ // 47F458: using guessed type int __stdcall WorldPosToGridCellZ(int); //----- (00488EEF) -------------------------------------------------------- -unsigned int OutdoorLocation::GetTileTexture(int sX, int sY) +unsigned int OutdoorLocation::GetTileTexture(signed int sX, signed int sY) { //OutdoorLocation *v3; // esi@1 - unsigned int v4; // edi@1 - unsigned int v5; // eax@1 + signed int v4; // edi@1 + signed int v5; // eax@1 // unsigned int result; // eax@5 /*v3 = this; @@ -2502,11 +2502,11 @@ } //----- (0047EE16) -------------------------------------------------------- -int OutdoorLocation::DoGetHeightOnTerrain(unsigned int uX, unsigned int uZ) +int OutdoorLocation::DoGetHeightOnTerrain(signed int sX, signed int sZ) { - assert(uX < 128 && uZ < 128); + assert(sX < 128 && sZ < 128); - return 32 * pTerrain.pHeightmap[uZ * 128 + uX]; + return 32 * pTerrain.pHeightmap[sZ * 128 + sX]; } //----- (0047EE49) --------------------------------------------------------