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

Function delta_leave_sync

Source/msg.cpp:370–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void delta_leave_sync(BYTE bLevel)
371{
372 int i, ma;
373 DMonsterStr *pD;
374
375 if (gbMaxPlayers != 1) {
376 if (currlevel == 0) {
377 glSeedTbl[0] = GetRndSeed();
378 }
379 if (currlevel > 0) {
380 for (i = 0; i < nummonsters; ++i) {
381 ma = monstactive[i];
382 if (monster[ma]._mhitpoints) {
383 sgbDeltaChanged = TRUE;
384 pD = &sgLevels[bLevel].monster[ma];
385 pD->_mx = monster[ma]._mx;
386 pD->_my = monster[ma]._my;
387 pD->_mdir = monster[ma]._mdir;
388 pD->_menemy = encode_enemy(ma);
389 pD->_mhitpoints = monster[ma]._mhitpoints;
390 pD->_mactive = monster[ma]._msquelch;
391 }
392 }
393 memcpy(&sgLocals[bLevel], automapview, sizeof(automapview));
394 }
395 }
396}
397
398BOOL delta_portal_inited(int i)
399{

Callers 1

DeltaSaveLevelFunction · 0.85

Calls 2

GetRndSeedFunction · 0.85
encode_enemyFunction · 0.85

Tested by

no test coverage detected