diff options
author | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-05-17 23:42:07 +0000 |
---|---|---|
committer | taw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5> | 2008-05-17 23:42:07 +0000 |
commit | 6741901029cd322a4abf61a91ac34afabf9b093a (patch) | |
tree | cd49b045ebee09b3ed2856c3e071c729badcf6be /src/render.c | |
parent | c7a6dcb197ca36aa5df2610c451c7d59f1078810 (diff) |
Fix radiation meter transparency
git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@27 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c index c6e8079..9419413 100644 --- a/src/render.c +++ b/src/render.c @@ -326,7 +326,7 @@ static void render_draw_2d(RenderContext *r, Game *game) { glColor4f(1.0, 1.0, 0.0, 0.5); glVertex2f(-1.0, -0.8); /* Bottom left */ glVertex2f(-0.9, -0.8); /* Bottom right */ - glColor4f(0.8, cg, 0.0, game->radiation); + glColor4f(0.8, cg, 0.0, 0.5+0.5*game->radiation); glVertex2f(-0.9, -0.8+(1.8*game->radiation)); /* Top right */ glVertex2f(-1.0, -0.8+(1.8*game->radiation)); /* Top left */ glEnd(); |