| 22 | int sgnSyncPInv; |
| 23 | |
| 24 | void SyncOneMonster() |
| 25 | { |
| 26 | for (size_t i = 0; i < ActiveMonsterCount; i++) { |
| 27 | int m = ActiveMonsters[i]; |
| 28 | auto &monster = Monsters[m]; |
| 29 | sgnMonsterPriority[m] = MyPlayer->position.tile.ManhattanDistance(monster.position.tile); |
| 30 | if (monster.activeForTicks == 0) { |
| 31 | sgnMonsterPriority[m] += 0x1000; |
| 32 | } else if (sgwLRU[m] != 0) { |
| 33 | sgwLRU[m]--; |
| 34 | } |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | void SyncMonsterPos(TSyncMonster &monsterSync, int ndx) |
| 39 | { |
no test coverage detected