mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix incorrect terrain height for poly
This caused decals to float in the air when they were placed on the terrain
This commit is contained in:
parent
df53d35967
commit
a72da9b73e
1 changed files with 1 additions and 1 deletions
|
@ -1447,7 +1447,7 @@ qboolean R_TerrainHeightForPoly(cTerraPatchUnpacked_t *pPatch, polyVert_t *pVert
|
|||
float fConstZ = fKz[0] + fKz[1] + fKz[2];
|
||||
|
||||
// Write back the calculated height into the vertex
|
||||
pVerts[i].xyz[2] = fScaleY - fScaleX - fConstZ;
|
||||
pVerts[i].xyz[2] = fScaleX - fScaleY - fConstZ;
|
||||
}
|
||||
|
||||
return qtrue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue