47 |
delete this; \ |
delete this; \ |
48 |
} |
} |
49 |
|
|
50 |
|
#define USE_IMPULSES |
51 |
|
|
52 |
//---------------------------------------- |
//---------------------------------------- |
53 |
// MovableStone |
// MovableStone |
54 |
// |
// |
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 |
|
|