| 987 | r = NULL, s = world; |
| 988 | #define c(f) (s->f==r->f) |
| 989 | loopi(cubicsize) |
| 990 | { |
| 991 | if(SOLID(s)) |
| 992 | { |
| 993 | if(r && c(type) && c(vdelta) && ((s->visible & INVISWTEX) || c(wtex))) |
| 994 | { |
| 995 | s->wtex = r->wtex; |
| 996 | } |
| 997 | else r = s; |
| 998 | } |
| 999 | else |
| 1000 | { |
| 1001 | if(r && c(type) && c(floor) && c(ceil) && c(ctex) && c(ftex) && c(vdelta) && c(tag) && ((s->visible & INVISWTEX) || c(wtex)) && ((s->visible & INVISUTEX) || c(utex))) |
| 1002 | { |
| 1003 | s->wtex = r->wtex; |
| 1004 | s->utex = r->utex; |
| 1005 | } |
| 1006 | else r = s; |
| 1007 | } |
| 1008 | s++; |
| 1009 | } |
| 1010 | #undef c |
| 1011 | |
| 1012 | clearworldvisibility(); // cleanup |
no test coverage detected