| 331 | } |
| 332 | |
| 333 | void 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 | |
| 354 | void delta_sync_golem(TCmdGolem *pG, int pnum, BYTE bLevel) |
| 355 | { |