MCPcopy Index your code
hub / github.com/assaultcube/AC / loopi

Function loopi

source/src/world.cpp:989–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987 r = NULL, s = world;
988 #define c(f) (s->f==r->f)
989 loopi(cubicsize)
990 {
991 if(SOLID(s))
992 {
993 if(r && c(type) && c(vdelta) && ((s->visible & INVISWTEX) || c(wtex)))
994 {
995 s->wtex = r->wtex;
996 }
997 else r = s;
998 }
999 else
1000 {
1001 if(r && c(type) && c(floor) && c(ceil) && c(ctex) && c(ftex) && c(vdelta) && c(tag) && ((s->visible & INVISWTEX) || c(wtex)) && ((s->visible & INVISUTEX) || c(utex)))
1002 {
1003 s->wtex = r->wtex;
1004 s->utex = r->utex;
1005 }
1006 else r = s;
1007 }
1008 s++;
1009 }
1010 #undef c
1011
1012 clearworldvisibility(); // cleanup

Callers 6

remipFunction · 0.70
setupworldFunction · 0.70
empty_worldFunction · 0.70
calcworldvisibilityFunction · 0.70
mapmrproperFunction · 0.70
mapareacheckFunction · 0.70

Calls 1

cvecprintfFunction · 0.85

Tested by

no test coverage detected