| 75 | // (used for wall rendering below) |
| 76 | |
| 77 | bool issemi(int mip, int x, int y, int x1, int y1, int x2, int y2) |
| 78 | { |
| 79 | if(!(mip--)) return true; |
| 80 | sqr *w = wmip[mip]; |
| 81 | int mfactor = sfactor - mip; |
| 82 | x *= 2; |
| 83 | y *= 2; |
| 84 | switch(SWS(w, x+x1, y+y1, mfactor)->type) |
| 85 | { |
| 86 | case SEMISOLID: if(issemi(mip, x+x1, y+y1, x1, y1, x2, y2)) return true; |
| 87 | case CORNER: |
| 88 | case SOLID: break; |
| 89 | default: return true; |
| 90 | } |
| 91 | switch(SWS(w, x+x2, y+y2, mfactor)->type) |
| 92 | { |
| 93 | case SEMISOLID: if(issemi(mip, x+x2, y+y2, x1, y1, x2, y2)) return true; |
| 94 | case CORNER: |
| 95 | case SOLID: break; |
| 96 | default: return true; |
| 97 | } |
| 98 | return false; |
| 99 | } |
| 100 | |
| 101 | bool render_floor, render_ceil; |
| 102 | |