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

Function delta_sync_monster

Source/msg.cpp:333–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331}
332
333void delta_sync_monster(const TSyncMonster *pSync, BYTE bLevel)
334{
335 DMonsterStr *pD;
336
337 if (gbMaxPlayers == 1) {
338 return;
339 }
340
341 /// ASSERT: assert(pSync != NULL);
342 /// ASSERT: assert(bLevel < NUMLEVELS);
343 sgbDeltaChanged = TRUE;
344
345 pD = &sgLevels[bLevel].monster[pSync->_mndx];
346 if (pD->_mhitpoints != 0) {
347 pD->_mx = pSync->_mx;
348 pD->_my = pSync->_my;
349 pD->_mactive = UCHAR_MAX;
350 pD->_menemy = pSync->_menemy;
351 }
352}
353
354void delta_sync_golem(TCmdGolem *pG, int pnum, BYTE bLevel)
355{

Callers 1

sync_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected