MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xGridAddToCell

Function xGridAddToCell

src/SB/Core/x/xGrid.cpp:99–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99bool xGridAddToCell(xGridBound** boundList, xGridBound* bound)
100{
101 if (bound->head)
102 {
103 if (gGridIterActive == 0)
104 {
105 if (!xGridRemove(bound))
106 {
107 return false;
108 }
109 }
110 else
111 {
112 return false;
113 }
114 }
115
116 bound->head = boundList;
117 bound->next = boundList[0];
118 boundList[0] = bound;
119 return true;
120}
121
122void xGridAdd(xGrid* grid, xGridBound* bound, S32 x, S32 z)
123{

Callers 1

xGridAddFunction · 0.85

Calls 1

xGridRemoveFunction · 0.70

Tested by

no test coverage detected