| 47 | } |
| 48 | |
| 49 | void SyncPortals() |
| 50 | { |
| 51 | int i; |
| 52 | |
| 53 | for (i = 0; i < MAXPORTAL; i++) { |
| 54 | if (!portal[i].open) |
| 55 | continue; |
| 56 | if (currlevel == 0) |
| 57 | AddWarpMissile(i, WarpDropX[i], WarpDropY[i]); |
| 58 | else { |
| 59 | int lvl = currlevel; |
| 60 | if (setlevel) |
| 61 | lvl = setlvlnum; |
| 62 | if (portal[i].level == lvl) |
| 63 | AddWarpMissile(i, portal[i].x, portal[i].y); |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | void AddInTownPortal(int i) |
| 69 | { |
no test coverage detected