| 98 | // map geometry statistics |
| 99 | |
| 100 | servsqr *createservworld(const sqr *s, int _cubicsize) // create a server-style floorplan on the client, to use same statistics functions on client and server |
| 101 | { |
| 102 | servsqr *res = new servsqr[_cubicsize], *d = res; |
| 103 | loopirev(_cubicsize) |
| 104 | { |
| 105 | d->type = s->type == SOLID ? SOLID : ((s->type & TAGTRIGGERMASK) | (s->tag & ~TAGTRIGGERMASK)); // guaranteed to not have tagclips on SOLID cubes - so we can check for SOLID without masks |
| 106 | d->ceil = s->ceil; |
| 107 | d->floor = s->floor; |
| 108 | d->vdelta = s->vdelta; |
| 109 | d++; |
| 110 | s++; |
| 111 | } |
| 112 | return res; |
| 113 | } |
| 114 | |
| 115 | int calcmapdims(mapdim_s &md, const servsqr *s, int _ssize) |
| 116 | { |
no outgoing calls
no test coverage detected