Fixed compilation errors in VS 2005: std::sqrt() -> sqrt()

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8339 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2016-11-02 13:24:17 +00:00
parent 3c836ba191
commit 6c737fefd3
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
#else
#include <stdio.h>
#include <time.h>
#include <math.h>
#include "sgp.h"
#include "gameloop.h"
#include "himage.h"
@@ -636,7 +637,7 @@ void DrawExplosionWarning( INT32 sGridno, INT8 usLevel, INT8 usDelay )
{
for ( INT32 y = yl; y <= yh; ++y )
{
FLOAT diff = std::sqrt( (FLOAT)((sScreenX - x) * (sScreenX - x) + 2 * (sScreenY - y) * (sScreenY - y)) );
FLOAT diff = sqrt( (FLOAT)((sScreenX - x) * (sScreenX - x) + 2 * (sScreenY - y) * (sScreenY - y)) );
if ( radius_inner <= diff && diff <= radius_outer )
{