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

Function tofronttex

source/src/editing.cpp:682–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

680COMMAND(paste, "");
681
682void tofronttex() // maintain most recently used of the texture lists when applying texture
683{
684 loopi(3)
685 {
686 int c = curedittex[i];
687 if(c>=0)
688 {
689 uchar *p = hdr.texlists[i];
690 int t = p[c];
691 for(int a = c-1; a>=0; a--) p[a+1] = p[a];
692 p[0] = t;
693 curedittex[i] = -1;
694 }
695 }
696}
697
698const char *texturestacktypes[] = { "floor", "wall", "ceiling", "" };
699

Callers 3

edittexturestackFunction · 0.85
editdragFunction · 0.85
edittexFunction · 0.85

Calls 1

loopiFunction · 0.70

Tested by

no test coverage detected