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:
smallmodel 2024-09-15 23:49:42 +02:00
parent df53d35967
commit a72da9b73e
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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;