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

Function sync_monster_pos

Source/sync.cpp:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void sync_monster_pos(TSyncMonster *p, int ndx)
94{
95 p->_mndx = ndx;
96 p->_mx = monster[ndx]._mx;
97 p->_my = monster[ndx]._my;
98 p->_menemy = encode_enemy(ndx);
99 p->_mdelta = sync_word_6AA708[ndx] > 255 ? 255 : sync_word_6AA708[ndx];
100
101 sync_word_6AA708[ndx] = 0xFFFF;
102 sgwLRU[ndx] = monster[ndx]._msquelch == 0 ? 0xFFFF : 0xFFFE;
103}
104
105BOOL sync_monster_active2(TSyncMonster *p)
106{

Callers 2

sync_monster_activeFunction · 0.85
sync_monster_active2Function · 0.85

Calls 1

encode_enemyFunction · 0.85

Tested by

no test coverage detected