| 52 | } |
| 53 | |
| 54 | void sync_one_monster() |
| 55 | { |
| 56 | int i, m; |
| 57 | |
| 58 | for (i = 0; i < nummonsters; i++) { |
| 59 | m = monstactive[i]; |
| 60 | sync_word_6AA708[m] = abs(plr[myplr].WorldX - monster[m]._mx) + abs(plr[myplr].WorldY - monster[m]._my); |
| 61 | if (monster[m]._msquelch == 0) { |
| 62 | sync_word_6AA708[m] += 0x1000; |
| 63 | } else if (sgwLRU[m] != 0) { |
| 64 | sgwLRU[m]--; |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | BOOL sync_monster_active(TSyncMonster *p) |
| 70 | { |