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

Function gettextureslot

source/src/texture.cpp:497–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

495
496
497const char *gettextureslot(int i)
498{
499 static string res;
500 if(slots.inrange(i))
501 {
502 Slot &s = slots[i];
503 formatstring(res)("texture %s \"%s\"", floatstr(s.orgscale, true), s.name);
504 return res;
505 }
506 else return NULL;
507}
508
509Texture *lookuptexture(int tex, Texture *failtex, bool trydl)
510{

Callers 3

loopvFunction · 0.85
getcurrentmapconfigFunction · 0.85
load_worldFunction · 0.85

Calls 2

floatstrFunction · 0.85
inrangeMethod · 0.80

Tested by

no test coverage detected