diff -ru crack-attack-1.1.14.orig/src/ComputerPlayerAI.cxx crack-attack-1.1.14/src/ComputerPlayerAI.cxx --- crack-attack-1.1.14.orig/src/ComputerPlayerAI.cxx 2005-04-26 03:04:46 +0700 +++ crack-attack-1.1.14/src/ComputerPlayerAI.cxx 2005-12-16 14:48:32 +0600 @@ -105,11 +105,10 @@ int norm_div = num_normals / 3; int norm_mod = num_normals % 3; - int more_gray = norm_mod / 2; - LOG("div: " << norm_div << " mod: " << norm_mod << " gray: " << more_gray); + + LOG("div: " << norm_div << " mod: " << norm_mod << " gray: " << norm_mod / 2); if (norm_div > 0) q->add(norm_div, 6, GF_NORMAL); loopi(norm_mod) q->add(1, 6, GF_NORMAL); - //loopi(more_gray) q->add(1, 6, GF_GRAY); shatter(); return q; @@ -119,10 +118,9 @@ { MESSAGE("Resetting garbageQueue " << garbageQueue()->height()); if (garbageQueue()->height() > 0) { - state = AI_SHATTERING; - int gray_height = garbageQueue()->specialHeight(); + state = AI_SHATTERING; last_shatter_height = garbageQueue()->removeWithSpecials(); - MESSAGE(last_shatter_height << " shattered and " << garbageQueue()->height() << " remaining grays:" << gray_height); + MESSAGE(last_shatter_height << " shattered and " << garbageQueue()->height() << " remaining grays:" << garbageQueue()->specialHeight()); loopi(last_shatter_height) { if (Random::chanceIn(GC_GARBAGE_TO_GARBAGE_SHATTER)) { garbageQueue()->add(1, 6, GF_NORMAL); --- crack-attack/src/Music.cxx.orig +++ crack-attack/src/Music.cxx @@ -58,7 +58,7 @@ void Music::initialize ( ) #ifndef NDEBUG cout << "Music dir: " << music_dirname.c_str() << endl; #endif - while ( music_dirent = readdir ( music_dir ) ) { + while ( (music_dirent = readdir ( music_dir )) ) { music_filename = music_dirent->d_name; if ( ( music_filename == string( GC_MUSIC_GAME_TRACK ) ) ) { music_filelist.clear();