aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/viewpostprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/game/client/viewpostprocess.cpp')
-rw-r--r--mp/src/game/client/viewpostprocess.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mp/src/game/client/viewpostprocess.cpp b/mp/src/game/client/viewpostprocess.cpp
index 3f74acdc..39c2237e 100644
--- a/mp/src/game/client/viewpostprocess.cpp
+++ b/mp/src/game/client/viewpostprocess.cpp
@@ -1885,7 +1885,8 @@ static void DrawPyroVignette( int nDestX, int nDestY, int nWidth, int nHeight, /
if ( pyro_vignette.GetInt() > 1 )
{
- Vector2D vMaxSize( ( float )nScreenWidth / ( float )nScreenWidth / NUM_PYRO_SEGMENTS * 2.0f, ( float )nScreenHeight / ( float )nScreenHeight / NUM_PYRO_SEGMENTS * 2.0f );
+ float flPyroSegments = 2.0f / NUM_PYRO_SEGMENTS;
+ Vector2D vMaxSize( flPyroSegments, flPyroSegments );
if ( !bInit )
{