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

Function encode_enemy

Source/monster.cpp:5531–5537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5529}
5530
5531int encode_enemy(int m)
5532{
5533 if (monster[m]._mFlags & MFLAG_TARGETS_MONSTER)
5534 return monster[m]._menemy + MAX_PLRS;
5535 else
5536 return monster[m]._menemy;
5537}
5538
5539void decode_enemy(int m, int enemy)
5540{

Callers 2

delta_leave_syncFunction · 0.85
sync_monster_posFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected