From c51b91cfe79a1ffd5da3f6a6ce202982cdfcdf85 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 6 May 2008 22:57:13 -0700 Subject: Windows WIP. --- src/win95/chnkload.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/win95/chnkload.cpp') diff --git a/src/win95/chnkload.cpp b/src/win95/chnkload.cpp index cd60e23..1d450c2 100644 --- a/src/win95/chnkload.cpp +++ b/src/win95/chnkload.cpp @@ -2176,7 +2176,7 @@ void SetupAnimatingShape(Shape_Chunk* sc,SHAPEHEADER* shp, Shape_Merge_Data_Chun int x=max(-sas->min_x,sas->max_x); int y=max(-sas->min_y,sas->max_y); int z=max(-sas->min_z,sas->max_z); - sas->radius=(int)sqrt(x*x+y*y+z*z); + sas->radius=(int)sqrt((double)(x*x+y*y+z*z)); sas->vertex_normals=(int*)PoolAllocateMem(sizeof(VECTORCH)*cas->num_verts); -- cgit v1.3