From: Ingo Ruhnke Date: Sun, 11 Apr 2004 00:24:22 +0000 (+0000) Subject: - removed obsolete hardcoded tiles X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=234eef12ae725e40b14f9ebb7f8308fbe6fb06b8;p=supertux.git - removed obsolete hardcoded tiles SVN-Revision: 464 --- diff --git a/src/level.cpp b/src/level.cpp index 6d51c7805..e3e40c061 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -26,7 +26,7 @@ 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() { @@ -544,6 +544,7 @@ Level::cleanup() 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); @@ -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); - + */ 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) { - 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); } diff --git a/src/level.h b/src/level.h index 682c56925..2a4526dee 100644 --- a/src/level.h +++ b/src/level.h @@ -52,11 +52,6 @@ enum TileMapType { 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: