/[enigma]/enigma/src/object_mixins.hh
ViewVC logotype

Diff of /enigma/src/object_mixins.hh

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

revision 1.6 by dheck, Sat Apr 26 07:29:40 2003 UTC revision 1.7 by reallysoft, Sat May 3 07:16:34 2003 UTC
# Line 47  namespace world Line 47  namespace world
47              delete this;                                                        \              delete this;                                                        \
48          }          }
49    
50    #define USE_IMPULSES
51    
52  //----------------------------------------  //----------------------------------------
53  // MovableStone  // MovableStone
54  //  //
# Line 70  namespace world Line 72  namespace world
72              // enough (and actually pointing towards the stone), consider              // enough (and actually pointing towards the stone), consider
73              // moving the stone.              // moving the stone.
74              Direction dir=contact_face(sc);              Direction dir=contact_face(sc);
75              if (dir!=enigma::NODIR && ai->vel * sc.normal < -4)              if (dir!=enigma::NODIR && ai->vel * sc.normal < -4) {
76    #ifdef USE_IMPULSES
77                    SendImpulse(get_pos(), reverse(dir));
78    #else
79                  MaybeMoveStone(get_pos(), reverse(dir));                  MaybeMoveStone(get_pos(), reverse(dir));
80    #endif
81                }
82          }          }
83      };      };
84    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

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