AGS: Fix uninitialized variable compiler warning

This commit is contained in:
Kaloyan Chehlarski 2023-10-28 12:47:40 +03:00
parent a88fc1ce28
commit a9dac765fe

View File

@ -174,9 +174,9 @@ void AGSPalRender::Ray_GetAmbientLight(ScriptMethodParams &params) {
}
double fsqrt(double y) {
double x, z, tempf;
tempf = y;
unsigned long *tfptr = ((unsigned long *)&tempf) + 1;
tempf = y;
*tfptr = (0xbfcdd90a - *tfptr) >> 1; /* estimate of 1/sqrt(y) */
x = tempf;
z = y * 0.5; /* hoist out the <20>/2<> */