| 1001 | COMMAND(textureslotusagelist, "s"); |
| 1002 | |
| 1003 | bool testworldtexusage(int n) |
| 1004 | { |
| 1005 | sqr *s = world; |
| 1006 | loopirev(cubicsize) |
| 1007 | { |
| 1008 | if(s->wtex == n || s->ctex == n || s->ftex == n || s->utex == n) return true; |
| 1009 | s++; |
| 1010 | } |
| 1011 | return false; |
| 1012 | } |
| 1013 | |
| 1014 | void textureslotusage(int *n) // returns all mapmodel entity indices that use a certain texture to skin the model |
| 1015 | // if the texture is used in map geometry, at least a space is returned |
no outgoing calls
no test coverage detected