From: Ryan Flegel Date: Tue, 21 Sep 2004 22:03:32 +0000 (+0000) Subject: - fixed warnings pointed out by Frank X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3fcc45aed0cc7675b82082d139745c8130965299;p=supertux.git - fixed warnings pointed out by Frank SVN-Revision: 1957 --- diff --git a/src/level.cpp b/src/level.cpp index 570b4b4a5..aad2bf959 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -172,8 +172,8 @@ Level::get_total_coins() { int total_coins = 0; for(Sectors::iterator it = sectors.begin(); it != sectors.end(); ++it) - for(int x = 0; x < it->second->solids->get_width(); x++) - for(int y = 0; y < it->second->solids->get_height(); y++) + for(int x = 0; static_cast(x) < it->second->solids->get_width(); x++) + for(int y = 0; static_cast(y) < it->second->solids->get_height(); y++) if(it->second->solids->get_tile(x,y)->attributes & Tile::COIN) total_coins++; return total_coins; diff --git a/src/sector.cpp b/src/sector.cpp index 52167756f..017eff714 100644 --- a/src/sector.cpp +++ b/src/sector.cpp @@ -45,8 +45,9 @@ Sector* Sector::_current = 0; Sector::Sector() - : gravity(10), player(0), solids(0), background(0), camera(0), - end_sequence_animation_type(NONE_ENDSEQ_ANIM), currentmusic(LEVEL_MUSIC) + : end_sequence_animation_type(NONE_ENDSEQ_ANIM), + gravity(10), player(0), solids(0), background(0), camera(0), + currentmusic(LEVEL_MUSIC) { song_title = "Mortimers_chipdisko.mod"; player = new Player();