| 663 | } |
| 664 | |
| 665 | void CM_SnapPVS(vec3_t origin,byte *buffer) |
| 666 | { |
| 667 | int clientarea; |
| 668 | int leafnum; |
| 669 | int i; |
| 670 | |
| 671 | leafnum = CM_PointLeafnum (origin); |
| 672 | clientarea = CM_LeafArea (leafnum); |
| 673 | |
| 674 | // calculate the visible areas |
| 675 | memset(buffer,0,MAX_MAP_AREA_BYTES); |
| 676 | CM_WriteAreaBits(buffer,clientarea); |
| 677 | for ( i = 0 ; i < MAX_MAP_AREA_BYTES/4 ; i++ ) { |
| 678 | ((int *)buffer)[i] = ((int *)buffer)[i] ^ -1; |
| 679 | } |
| 680 | |
| 681 | } |
| 682 | |
| 683 |
no test coverage detected