src/brain_none.cpp
raw| 1 | #ifdef HAVE_CONFIG_H |
| 2 | #include <config.h> |
| 3 | #endif |
| 4 | |
| 5 | #include "brain.h" |
| 6 | #include "live_sprites_manager.h" |
| 7 | |
| 8 | void no_brain(int h) |
| 9 | { |
| 10 | if (spr[h].move_active) |
| 11 | { |
| 12 | process_move(h); |
| 13 | return; |
| 14 | } |
| 15 | |
| 16 | if (spr[h].freeze) return; |
| 17 | |
| 18 | if (spr[h].follow > 0) |
| 19 | { |
| 20 | process_follow(h); |
| 21 | return; |
| 22 | } |
| 23 | |
| 24 | } |