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

Function forceinsideborders

source/src/editing.cpp:218–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216FVAR(tagcliplinewidth, 0.2, 1, 3);
217
218inline void forceinsideborders(int &xy)
219{
220 if(xy < MINBORD) xy = MINBORD;
221 if(xy >= ssize - MINBORD) xy = ssize - MINBORD - 1;
222}
223
224void cursorupdate() // called every frame from hud
225{

Callers 1

cursorupdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected