1265 |
void animcb() { |
void animcb() { |
1266 |
Direction dir = get_orientation(); |
Direction dir = get_orientation(); |
1267 |
GridPos stonepos = move(get_pos(), reverse(dir)); |
GridPos stonepos = move(get_pos(), reverse(dir)); |
1268 |
#if defined(USE_IMPULSES) |
|
1269 |
SendImpulse(stonepos, dir); |
SendImpulse(stonepos, dir, this); |
|
#else |
|
|
world::MaybeMoveStone(stonepos, dir); |
|
|
#endif // USE_IMPULSES |
|
1270 |
play_sound("explosion2"); |
play_sound("explosion2"); |
1271 |
SetItem(get_pos(), new Explosion(Explosion::WEAK)); |
SetItem(get_pos(), new Explosion(Explosion::WEAK)); |
1272 |
} |
} |