fixed windows build

This commit is contained in:
Mark Vejvoda 2013-10-03 00:45:51 +00:00
parent 9e60723296
commit 312c2db483
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ void ParticleRendererGl::renderModel(GameParticleSystem *ps, ModelRenderer *mr){
Vec3f flatDirection= Vec3f(direction.x, 0.f, direction.z);
Vec3f rotVector= Vec3f(0.f, 1.f, 0.f).cross(flatDirection);
float angleV= radToDeg(std::atan2(flatDirection.length(), (double)direction.y)) - 90.f;
float angleV= radToDeg(std::atan2(flatDirection.length(), (float)direction.y)) - 90.f;
glRotatef(angleV, rotVector.x, rotVector.y, rotVector.z);
float angleH= radToDeg(std::atan2(direction.x, direction.z));