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

Function loop

source/src/editing.cpp:988–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986{
987 EDITSELMP("replace");
988 loop(x,ssize) loop(y,ssize)
989 {
990 sqr *s = S(x, y);
991 switch(lasttype)
992 {
993 case 0: if(s->ftex == rtex.ftex) s->ftex = lasttex; break;
994 case 1: if(s->wtex == rtex.wtex) s->wtex = lasttex; break;
995 case 2: if(s->ctex == rtex.ctex) s->ctex = lasttex; break;
996 case 3: if(s->utex == rtex.utex) s->utex = lasttex; break;
997 }
998 }
999 block b = { 0, 0, ssize, ssize };
1000 remip(b);
1001 unsavededits++;

Callers 4

replaceFunction · 0.70
archvertexFunction · 0.70
movemapFunction · 0.70
loopvFunction · 0.70

Calls 2

maxFunction · 0.85
minFunction · 0.85

Tested by

no test coverage detected