/[enigma]/enigma/src/world.cc
ViewVC logotype

Diff of /enigma/src/world.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.72.2.2 by dheck, Mon Sep 22 02:49:35 2003 UTC revision 1.72.2.3 by dheck, Wed Sep 24 17:40:27 2003 UTC
# Line 622  handle_stone_contact (StoneContact &sc, Line 622  handle_stone_contact (StoneContact &sc,
622      if (sc.is_collision) {      if (sc.is_collision) {
623          if (!sc.fake_collision && sc.response == STONE_REBOUND) {          if (!sc.fake_collision && sc.response == STONE_REBOUND) {
624    
625              bool new_collision = false;  //             bool new_collision = false;
626              if (total_dtime != 0) {  //             if (total_dtime != 0) {
627                  double vn = (ai.pos - ai.last_pos)/total_dtime * sc.normal;  //                 double vn = (ai.pos - ai.last_pos)/total_dtime * sc.normal;
628                  new_collision = (vn < -0.25);  //                 new_collision = (vn < -0.25);
629              }  //             }
630                bool new_collision = true;
631    
632              ai.pos = ai.oldpos;         // Reset actor position              ai.pos = ai.oldpos;         // Reset actor position
633              if (new_collision) {              if (new_collision) {

Legend:
Removed from v.1.72.2.2  
changed lines
  Added in v.1.72.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26