|
From: Rob <geo...@us...> - 2006-03-15 13:00:41
|
Update of /cvsroot/timewarp/source/newships In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29580/source/newships Modified Files: shpalabc.cpp Log Message: alary bc death hang fix Index: shpalabc.cpp =================================================================== RCS file: /cvsroot/timewarp/source/newships/shpalabc.cpp,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** shpalabc.cpp 28 Aug 2005 20:34:07 -0000 1.22 --- shpalabc.cpp 15 Mar 2006 13:00:07 -0000 1.23 *************** *** 534,538 **** // game->kaboomSprite, 0, KABOOM_FRAMES, time_ratio, DEPTH_EXPLOSIONS)); // if (attributes & ATTRIB_NOTIFY_ON_DEATH) game->ship_died(this, source); ! turn_rate = scale_turning(12+tw_random(80)) * (1 - (tw_random() & 2) ); if (engines_armour > 0) { engines_armour = 0; --- 534,547 ---- // game->kaboomSprite, 0, KABOOM_FRAMES, time_ratio, DEPTH_EXPLOSIONS)); // if (attributes & ATTRIB_NOTIFY_ON_DEATH) game->ship_died(this, source); ! ! // int k = 12 + tw_random(80); ! // double tr = scale_turning(k); ! // int fac = (1 - (tw_random() & 2) ); ! // turn_rate = tr * fac; ! double t = (1 - (tw_random() & 2)); ! turn_rate = scale_turning(12.0 + tw_random(80.0)) * t ; ! if (fabs(turn_rate) > 1.0) ! tw_error("Turn rate error"); ! if (engines_armour > 0) { engines_armour = 0; |