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

Function edittexturestack

source/src/editing.cpp:700–709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

698const char *texturestacktypes[] = { "floor", "wall", "ceiling", "" };
699
700void edittexturestack(char *what, int *slot) // manually manipulate the "last-used" texture lists to put certain textures up front
701{
702 tofronttex(); // keep laste edited texture
703 int n = getlistindex(what, texturestacktypes, true, -1);
704 if(n >= 0)
705 {
706 loopi(256) if(hdr.texlists[n][i] == *slot) curedittex[n] = i; // find stack index of wanted texture slot
707 }
708 tofronttex();
709}
710COMMAND(edittexturestack, "si");
711
712void editdrag(bool isdown)

Callers

nothing calls this directly

Calls 3

tofronttexFunction · 0.85
getlistindexFunction · 0.85
loopiFunction · 0.70

Tested by

no test coverage detected