fixed compilation and linking with msvc9

svn-id: r38232
This commit is contained in:
Paweł Kołodziejski 2009-02-15 12:29:09 +00:00
parent 8b34730107
commit 0724206156
5 changed files with 117 additions and 130 deletions

View file

@ -59,7 +59,7 @@ get_angle(int xrel, int yrel)
if ((xrel == 0) && (yrel == 0))
return 0;
else {
int val = (int) (180.0/PI * atan2((float)xrel, (float)-yrel));
int val = (int) (180.0/PI * atan2((double)xrel, (double)-yrel));
if (val < 0)
val += 360;