From: Ingo Ruhnke Date: Sun, 25 Apr 2004 12:11:25 +0000 (+0000) Subject: - fixed/changed gradient tags to match with the one used in the current level files X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9b2a3d1ca524d859d29d81f759f6bb2b1f560be3;p=supertux.git - fixed/changed gradient tags to match with the one used in the current level files SVN-Revision: 694 --- diff --git a/src/level.cpp b/src/level.cpp index 0ee5cc752..ea04cf11c 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -313,13 +313,13 @@ Level::load(const std::string& filename) if (!reader.read_int("start_pos_y", &start_pos_y)) start_pos_y = 170; reader.read_int("time", &time_left); - reader.read_int("bkgd_top_red", &bkgd_top.red); - reader.read_int("bkgd_top_green", &bkgd_top.green); - reader.read_int("bkgd_top_blue", &bkgd_top.blue); + reader.read_int("bkgd_red_top", &bkgd_top.red); + reader.read_int("bkgd_green_top", &bkgd_top.green); + reader.read_int("bkgd_blue_top", &bkgd_top.blue); - reader.read_int("bkgd_bottom_red", &bkgd_bottom.red); - reader.read_int("bkgd_bottom_green", &bkgd_bottom.green); - reader.read_int("bkgd_bottom_blue", &bkgd_bottom.blue); + reader.read_int("bkgd_red_bottom", &bkgd_bottom.red); + reader.read_int("bkgd_green_bottom", &bkgd_bottom.green); + reader.read_int("bkgd_blue_bottom", &bkgd_bottom.blue); reader.read_float("gravity", &gravity); reader.read_string("name", &name); @@ -540,12 +540,12 @@ Level::save(const char * subset, int level) fprintf(fi," (music \"%s\")\n", song_title.c_str()); fprintf(fi," (background \"%s\")\n", bkgd_image.c_str()); fprintf(fi," (particle_system \"%s\")\n", particle_system.c_str()); - fprintf(fi," (bkgd_top_red %d)\n", bkgd_top.red); - fprintf(fi," (bkgd_top_green %d)\n", bkgd_top.green); - fprintf(fi," (bkgd_top_blue %d)\n", bkgd_top.blue); - fprintf(fi," (bkgd_bottom_red %d)\n", bkgd_bottom.red); - fprintf(fi," (bkgd_bottom_green %d)\n", bkgd_bottom.green); - fprintf(fi," (bkgd_bottom_blue %d)\n", bkgd_bottom.blue); + fprintf(fi," (bkgd_red_top %d)\n", bkgd_top.red); + fprintf(fi," (bkgd_green_top %d)\n", bkgd_top.green); + fprintf(fi," (bkgd_blue_top %d)\n", bkgd_top.blue); + fprintf(fi," (bkgd_red_bottom %d)\n", bkgd_bottom.red); + fprintf(fi," (bkgd_green_bottom %d)\n", bkgd_bottom.green); + fprintf(fi," (bkgd_blue_bottom %d)\n", bkgd_bottom.blue); fprintf(fi," (time %d)\n", time_left); fprintf(fi," (width %d)\n", width); fprintf(fi," (gravity %2.1f)\n", gravity);