MCPcopy Create free account
hub / github.com/diasurgical/devilution / sync_one_monster

Function sync_one_monster

Source/sync.cpp:54–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void 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
69BOOL sync_monster_active(TSyncMonster *p)
70{

Callers 1

sync_all_monstersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected