| 366 | } |
| 367 | |
| 368 | void blocktexusage(const block &b, uchar *used) |
| 369 | { |
| 370 | const sqr *q = (const sqr *)((&b)+1); |
| 371 | loopirev(b.xs * b.ys) |
| 372 | { // collect used texture slots in block |
| 373 | used[q->wtex] = 1; |
| 374 | if(q->type != SOLID) |
| 375 | { |
| 376 | used[q->ctex] = 1; |
| 377 | used[q->ftex] = 1; |
| 378 | used[q->utex] = 1; |
| 379 | } |
| 380 | q++; |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | void blockpaste(const block &b, int bx, int by, bool light, uchar *texmap) // slow version, editmode only |
| 385 | { |