diff options
| author | unknown <user@.(none)> | 2008-05-06 22:57:13 -0700 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | c51b91cfe79a1ffd5da3f6a6ce202982cdfcdf85 (patch) | |
| tree | e319ca16144d95bb99aedadcbbcf05240b5f4611 /src/win95/chnkload.cpp | |
| parent | 5d3725f9d972cde917ab9b076cb0b89b33557c7a (diff) | |
Windows WIP.
Diffstat (limited to 'src/win95/chnkload.cpp')
| -rw-r--r-- | src/win95/chnkload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
