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

Function outsidemap

source/src/rendergl.cpp:965–972  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

963}
964
965bool outsidemap(physent *pl)
966{
967 if(pl->o.x < 0 || pl->o.x >= ssize || pl->o.y <0 || pl->o.y > ssize) return true;
968 sqr *s = S((int)pl->o.x, (int)pl->o.y);
969 return SOLID(s)
970 || pl->o.z < s->floor - (s->type==FHF ? s->vdelta/4 : 0)
971 || pl->o.z > s->ceil + (s->type==CHF ? s->vdelta/4 : 0);
972}
973
974float cursordepth = 0.9f;
975glmatrixf mvmatrix, projmatrix, mvpmatrix, invmvmatrix, invmvpmatrix;

Callers 1

gl_drawframeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected