bugfix for windows copmpiler

This commit is contained in:
Mark Vejvoda 2013-06-12 06:51:59 +00:00
parent 4469e9b712
commit 80f25e8fff
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ void ParticleRendererGl::renderModel(GameParticleSystem *ps, ModelRenderer *mr){
// float angleV= radToDeg(atan2(flatDirection.length(), direction.y)) - 90.f;
//#endif
float angleV= radToDeg(std::atan2(flatDirection.length(), direction.y)) - 90.f;
float angleV= radToDeg(std::atan2(flatDirection.length(), (double)direction.y)) - 90.f;
glRotatef(angleV, rotVector.x, rotVector.y, rotVector.z);
//#ifdef USE_STREFLOP