Turn w and h parameters of image_snap into local variables.
[neverball] / share / solid_gl.c
index d91fda1..e38489f 100644 (file)
@@ -1,4 +1,4 @@
-/*   
+/*
  * Copyright (C) 2003 Robert Kooima
  *
  * NEVERBALL is  free software; you can redistribute  it and/or modify
@@ -45,7 +45,7 @@ static int sol_enum_mtrl(const struct s_file *fp,
             if (fp->gv[fp->iv[g0 + gi]].mi == mi)
                 c++;
     }
-                    
+
     /* Count all body geoms with this material. */
 
     for (gi = 0; gi < bp->gc; gi++)
@@ -392,7 +392,7 @@ static void sol_shad_list(const struct s_file *fp,
             glTranslatef(p[0], p[2], 0.0f);
         }
         glMatrixMode(GL_MODELVIEW);
-        
+
         /* Draw the body. */
 
         glCallList(list);
@@ -444,7 +444,7 @@ static void sol_load_objects(struct s_file *fp, int s)
         if (sol_enum_body(fp, bp, M_OPAQUE | M_ENVIRONMENT))
         {
             fp->bv[i].ol = glGenLists(1);
-            
+
             glNewList(fp->bv[i].ol, GL_COMPILE);
             {
                 sol_draw_body(fp, fp->bv + i, M_OPAQUE | M_ENVIRONMENT);
@@ -587,12 +587,11 @@ int sol_load_gl(struct s_file *fp, const char *filename, int k, int s)
 {
     if (sol_load_only_file(fp, filename))
     {
-       sol_load_textures(fp, k);
-       sol_load_objects (fp, s);
-       return 1;
+        sol_load_textures(fp, k);
+        sol_load_objects (fp, s);
+        return 1;
     }
-    else
-       return 0;
+    return 0;
 }
 
 /*---------------------------------------------------------------------------*/