Don't draw invisible switches in Neverputt
authorKrabbyKrap <KrabbyKrap@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Thu, 6 Nov 2008 04:29:07 +0000 (04:29 +0000)
committerKrabbyKrap <KrabbyKrap@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Thu, 6 Nov 2008 04:29:07 +0000 (04:29 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@2597 78b8d119-cf0a-0410-b17c-f493084dd1d7

putt/game.c

index ff0dac6..d563910 100644 (file)
@@ -259,6 +259,9 @@ static void game_draw_swchs(const struct s_file *fp)
 
     for (xi = 0; xi < fp->xc; xi++)
     {
+        if (fp->xv[xi].i)
+            continue;
+
         glPushMatrix();
         {
             glTranslatef(fp->xv[xi].p[0],