Code: Show/Hide if (pos->status & STATUS_SAFEZONE)
pos->status &= ~STATUS_ANTIWARP; |
Code: Show/Hide /* also turn off anti based on region */
if ((data->rgnnoanti) || (pos->status & STATUS_SAFEZONE)) pos->status &= ~STATUS_ANTIWARP; |
Code: Show/Hide /* send safe zone enters to everyone, reliably */
if ((pos->status & STATUS_SAFEZONE) && !(p->position.status & STATUS_SAFEZONE)) { sendtoall = TRUE; nflags = NET_RELIABLE; } /* send some percent of antiwarp positions to everyone */ if ( pos->weapon.type == 0 && (pos->status & STATUS_ANTIWARP) && prng->Rand() < cfg_sendanti) sendtoall = TRUE; |