- removed obsolete hardcoded tiles
authorIngo Ruhnke <grumbel@gmx.de>
Sun, 11 Apr 2004 00:24:22 +0000 (00:24 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Sun, 11 Apr 2004 00:24:22 +0000 (00:24 +0000)
SVN-Revision: 464

src/level.cpp
src/level.h

index 6d51c78..e3e40c0 100644 (file)
@@ -26,7 +26,7 @@
 
 using namespace std;
 
 
 using namespace std;
 
-texture_type img_bkgd, img_bkgd_tile[2][4], img_solid[4], img_brick[2];
+texture_type img_bkgd;
 
 st_subset::st_subset()
 {
 
 st_subset::st_subset()
 {
@@ -544,6 +544,7 @@ Level::cleanup()
 void 
 Level::load_gfx()
 {
 void 
 Level::load_gfx()
 {
+  /*
   level_load_image(&img_brick[0],theme,"brick0.png", IGNORE_ALPHA);
   level_load_image(&img_brick[1],theme,"brick1.png", IGNORE_ALPHA);
 
   level_load_image(&img_brick[0],theme,"brick0.png", IGNORE_ALPHA);
   level_load_image(&img_brick[1],theme,"brick1.png", IGNORE_ALPHA);
 
@@ -561,7 +562,7 @@ Level::load_gfx()
   level_load_image(&img_bkgd_tile[1][1],theme,"bkgd-11.png", USE_ALPHA);
   level_load_image(&img_bkgd_tile[1][2],theme,"bkgd-12.png", USE_ALPHA);
   level_load_image(&img_bkgd_tile[1][3],theme,"bkgd-13.png", USE_ALPHA);
   level_load_image(&img_bkgd_tile[1][1],theme,"bkgd-11.png", USE_ALPHA);
   level_load_image(&img_bkgd_tile[1][2],theme,"bkgd-12.png", USE_ALPHA);
   level_load_image(&img_bkgd_tile[1][3],theme,"bkgd-13.png", USE_ALPHA);
-
+  */
   if(!bkgd_image.empty())
     {
       char fname[1024];
   if(!bkgd_image.empty())
     {
       char fname[1024];
@@ -580,19 +581,6 @@ Level::load_gfx()
 /* Free graphics data for this level: */
 void level_free_gfx(void)
 {
 /* Free graphics data for this level: */
 void level_free_gfx(void)
 {
-  int i;
-
-  for (i = 0; i < 2; i++)
-    {
-      texture_free(&img_brick[i]);
-    }
-  for (i = 0; i < 4; i++)
-    {
-      texture_free(&img_solid[i]);
-      texture_free(&img_bkgd_tile[0][i]);
-      texture_free(&img_bkgd_tile[1][i]);
-    }
-
   texture_free(&img_bkgd);
 }
 
   texture_free(&img_bkgd);
 }
 
index 682c569..2a4526d 100644 (file)
@@ -52,11 +52,6 @@ enum TileMapType {
 
 extern texture_type img_bkgd;
 
 
 extern texture_type img_bkgd;
 
-/*
-extern texture_type img_bkgd_tile[2][4];
-extern texture_type img_solid[4];
-extern texture_type img_brick[2];
-*/
 class Level 
 {
  public:
 class Level 
 {
  public: