[Super-tux-commit] supertux/src level.cpp,1.27,1.28 level.h,1.21,1.22
Brought to you by:
wkendrick
From: Ingo R. <gr...@us...> - 2004-04-11 00:37:56
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20248 Modified Files: level.cpp level.h Log Message: - removed obsolete hardcoded tiles Index: level.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/level.cpp,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- level.cpp 11 Apr 2004 00:05:35 -0000 1.27 +++ level.cpp 11 Apr 2004 00:24:22 -0000 1.28 @@ -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 @@ 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_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 @@ /* 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); } Index: level.h =================================================================== RCS file: /cvsroot/super-tux/supertux/src/level.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- level.h 11 Apr 2004 00:05:35 -0000 1.21 +++ level.h 11 Apr 2004 00:24:22 -0000 1.22 @@ -52,11 +52,6 @@ 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: |