aboutsummaryrefslogtreecommitdiff
path: root/src/render.c
diff options
context:
space:
mode:
authortaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-18 00:01:41 +0000
committertaw27 <taw27@84d2e878-0bd5-11dd-ad15-13eda11d74c5>2008-07-18 00:01:41 +0000
commit22e44824699c214a91ae69dbf40d5ae336fa7441 (patch)
treee339c0feb408526e6dd4cbedff7fe474cdcfad42 /src/render.c
parent4f1c5d440d76dfa13fc78f385912dcde8d5495fa (diff)
Tidy up
Only 'recharge' when landed on a platform git-svn-id: svn://cook.msm.cam.ac.uk:745/thrust3d/thrust3d@141 84d2e878-0bd5-11dd-ad15-13eda11d74c5
Diffstat (limited to 'src/render.c')
-rw-r--r--src/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c
index 8de79e3..07a50e6 100644
--- a/src/render.c
+++ b/src/render.c
@@ -645,7 +645,7 @@ void render_draw(Game *game, Uint32 t) {
glViewport(0, 0, 64, 64);
if ( r->shaders ) glUseProgram(r->swirly_program);
if ( r->shaders ) glUniform1f(glGetUniformLocation(game->render->swirly_program, "time"), t);
- if ( r->shaders ) glUniform1i(glGetUniformLocation(game->render->swirly_program, "landed"), game->lander->landed);
+ if ( r->shaders ) glUniform1i(glGetUniformLocation(game->render->swirly_program, "landed"), game->lander->recharging);
if ( r->shaders ) glUniform2f(glGetUniformLocation(game->render->swirly_program, "lander"), 0.5, 0.0);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();