mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 21:59:17 +00:00
AGS: Fix uninitialized variable compiler warning
This commit is contained in:
parent
a88fc1ce28
commit
a9dac765fe
@ -174,9 +174,9 @@ void AGSPalRender::Ray_GetAmbientLight(ScriptMethodParams ¶ms) {
|
||||
}
|
||||
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<> */
|
||||
|
Loading…
Reference in New Issue
Block a user