- removed next_tile2, which isn't needed
authorIngo Ruhnke <grumbel@gmx.de>
Sun, 28 Mar 2004 12:41:11 +0000 (12:41 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Sun, 28 Mar 2004 12:41:11 +0000 (12:41 +0000)
- added --sdl option to turn of opengl in case it is on in the config file

SVN-Revision: 404

src/gameloop.cpp
src/setup.cpp
src/tile.cpp
src/tile.h

index 630ef3d..3c84ebb 100644 (file)
@@ -1171,7 +1171,7 @@ void drawshape(float x, float y, unsigned int c)
             }
           else
             {
-              printf("Tile not dravable %u\n", c);
+              //printf("Tile not dravable %u\n", c);
             }
         }
     }
@@ -1363,7 +1363,7 @@ void trybreakbrick(float x, float y)
             }
 
           if (distro_counter <= 0)
-            level_change(&current_level,x, y, TM_IA, tile->next_tile2);
+            level_change(&current_level,x, y, TM_IA, tile->next_tile);
 
           play_sound(sounds[SND_DISTRO], SOUND_CENTER_SPEAKER);
           score = score + SCORE_DISTRO;
index 60e5695..15e6ba0 100644 (file)
@@ -929,8 +929,11 @@ void parseargs(int argc, char * argv[])
 
           use_gl = true;
 #endif
-
         }
+      else if (strcmp(argv[i], "--sdl") == 0)
+          {
+            use_gl = false;
+          }
       else if (strcmp(argv[i], "--usage") == 0)
         {
           /* Show usage: */
@@ -971,6 +974,7 @@ void parseargs(int argc, char * argv[])
                "  --fullscreen        Run in fullscreen mode.\n"
                "  --opengl            If opengl support was compiled in, this will enable\n"
                "                      the EXPERIMENTAL OpenGL mode.\n"
+               "  --sdl               Use non-opengl renderer\n"
                "\n"
                "Sound Options:\n"
                "  --disable-sound     If sound support was compiled in,  this will\n"
index 50ccb66..2f3916e 100644 (file)
@@ -48,7 +48,6 @@ void TileManager::load_tileset(std::string filename)
               tile->data    = 0;
               tile->alpha   = 0;
               tile->next_tile  = 0;
-              tile->next_tile2 = 0;
               tile->anim_speed = 25;
   
               LispReader reader(lisp_cdr(element));
@@ -62,7 +61,6 @@ void TileManager::load_tileset(std::string filename)
               reader.read_int("alpha",      (int*)&tile->alpha);
               reader.read_int("anim-speed", &tile->anim_speed);
               reader.read_int("next-tile",  &tile->next_tile);
-              reader.read_int("next-tile2", &tile->next_tile2);
               reader.read_string_vector("images",  &tile->filenames);
 
              for(std::vector<std::string>::iterator it = tile->filenames.begin();
index 7ec8035..fc15208 100644 (file)
@@ -49,7 +49,6 @@ struct Tile
   /** Id of the tile that is going to replace this tile once it has
       been collected or jumped at */
   int next_tile;
-  int next_tile2;
 
   int anim_speed;
   unsigned char alpha;