| 1 |
#ifdef HAVE_CONFIG_H |
| 2 |
#include <config.h> |
| 3 |
#endif |
| 4 |
|
| 5 |
#include "brain.h" |
| 6 |
#include "live_sprites_manager.h" |
| 7 |
#include "live_screen.h" |
| 8 |
|
| 9 |
void repeat_brain(int h) |
| 10 |
{ |
| 11 |
|
| 12 |
if (spr[h].move_active) |
| 13 |
{ |
| 14 |
process_move(h); |
| 15 |
// return; |
| 16 |
} |
| 17 |
|
| 18 |
|
| 19 |
if (spr[h].seq_orig == 0) if (spr[h].sp_index != 0) |
| 20 |
{ |
| 21 |
spr[h].seq_orig = cur_ed_screen.sprite[spr[h].sp_index].seq; |
| 22 |
spr[h].frame = cur_ed_screen.sprite[spr[h].sp_index].frame; |
| 23 |
spr[h].wait = 0; |
| 24 |
|
| 25 |
//cur_ed_screen.sprite[spr[h].sp_index].frame; |
| 26 |
|
| 27 |
} |
| 28 |
|
| 29 |
if (spr[h].seq == 0) spr[h].seq = spr[h].seq_orig; |
| 30 |
|
| 31 |
} |