diff options
| author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-17 18:17:02 +0700 |
|---|---|---|
| committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2021-06-17 20:59:45 +0700 |
| commit | fb2f16557d34d3b2b4ad44687a55a830878e6aba (patch) | |
| tree | c9756f002d7c4ac2c529c185e77fc8603ff3e5ee /src/GameDraw.cpp | |
| parent | d5127bb945bef714e553bdadd86952fa5eace364 (diff) | |
| download | blackshades-fb2f16557d34d3b2b4ad44687a55a830878e6aba.tar.gz | |
Resolve trivial warnings
Diffstat (limited to 'src/GameDraw.cpp')
| -rw-r--r-- | src/GameDraw.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/GameDraw.cpp b/src/GameDraw.cpp index c79d87e..999b5e3 100644 --- a/src/GameDraw.cpp +++ b/src/GameDraw.cpp @@ -765,7 +765,7 @@ int Game::DrawGLScene(void) GLfloat LightAmbient[]= { fogcolorr/4, fogcolorg/4, fogcolorb/4, 1.0f}; - GLfloat LightDiffuse[]= { fogcolorr*1.6, fogcolorg*1.6, fogcolorr*1.6, 1.0f }; + GLfloat LightDiffuse[]= { fogcolorr*1.6f, fogcolorg*1.6f, fogcolorr*1.6f, 1.0f }; glLightfv(GL_LIGHT0, GL_AMBIENT, LightAmbient); @@ -775,9 +775,9 @@ int Game::DrawGLScene(void) if(environment!=sunny_environment){ - GLfloat LightAmbient[]= { fogcolorr*.8, fogcolorg*.8, fogcolorb*.8, 1.0f}; + GLfloat LightAmbient[]= { fogcolorr*.8f, fogcolorg*.8f, fogcolorb*.8f, 1.0f}; - GLfloat LightDiffuse[]= { fogcolorr*.8, fogcolorg*.8, fogcolorr*.8, 1.0f }; + GLfloat LightDiffuse[]= { fogcolorr*.8f, fogcolorg*.8f, fogcolorr*.8f, 1.0f }; glLightfv(GL_LIGHT0, GL_AMBIENT, LightAmbient); @@ -809,7 +809,7 @@ int Game::DrawGLScene(void) GLfloat LightAmbient[]= { 0, 0, 0, 1.0f}; - GLfloat LightDiffuse[]= { .1+sinefluct/5, 0, 0, 1.0f }; + GLfloat LightDiffuse[]= { .1f+sinefluct/5.0f, 0, 0, 1.0f }; @@ -969,18 +969,12 @@ int Game::DrawGLScene(void) glEnable(GL_BLEND); - XYZ move2; - XYZ move; int beginx,endx; int beginz,endz; - int beginoccludex,endoccludex; - - int beginoccludez,endoccludez; - int distsquared; @@ -1009,8 +1003,6 @@ int Game::DrawGLScene(void) bool draw; - int numfail; - int whichtri; XYZ collpoint; |
