MCPcopy Create free account
hub / github.com/assaultcube/AC / testworldtexusage

Function testworldtexusage

source/src/texture.cpp:1003–1012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1001COMMAND(textureslotusagelist, "s");
1002
1003bool 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
1014void 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

Callers 2

textureslotusageFunction · 0.85
deletetextureslotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected