/[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.66 by dheck, Tue Aug 12 18:28:05 2003 UTC revision 1.67 by dheck, Sun Aug 17 21:28:13 2003 UTC
# Line 637  advance_actor(Actor *a, double time, dou Line 637  advance_actor(Actor *a, double time, dou
637      ActorInfo &ai = *a->get_actorinfo();      ActorInfo &ai = *a->get_actorinfo();
638      V2 accel = get_accel(a, ai.pos, ai.vel, time);      V2 accel = get_accel(a, ai.pos, ai.vel, time);
639    
     ai.pos += h*ai.vel;  
640      ai.vel += h*accel;      ai.vel += h*accel;
641        ai.pos += h*ai.vel;
642    
643      // Limit maximum velocity      // Limit maximum velocity
644      double q = length(ai.vel) / MAXVEL;      double q = length(ai.vel) / MAXVEL;

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67

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