Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Windows build fix from web interface...
  • Loading branch information
NeoBrainX authored and NeoBrainX committed Mar 25, 2013
1 parent 51290fd commit beb0837
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Plugins/Plugin_VideoSoftware/Src/Tev.cpp
Expand Up @@ -25,7 +25,7 @@
#include "SWVideoConfig.h"
#include "DebugUtil.h"

#include <math.h>
#include <cmath>

#ifdef _DEBUG
#define ALLOW_TEV_DUMPS 1
Expand Down Expand Up @@ -752,7 +752,7 @@ void Tev::Draw()
{
// TODO: Check if this is correct (especially the magic values)
float offset = Position[0] - bpmem.fogRange.Base.Center + 324.f;
int index = 9 - abs(Position[0] - bpmem.fogRange.Base.Center + 324) / (162/5);
int index = 9 - std::abs(Position[0] - bpmem.fogRange.Base.Center + 324) / (162/5);
float k = bpmem.fogRange.K[index/2].GetValue(index%2);
float x_adjust = sqrt(offset*offset/162.f/162.f + k*k)/k;
ze *= x_adjust;
Expand Down

0 comments on commit beb0837

Please sign in to comment.