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

Function xEntAnimateCollision

src/SB/Core/x/xEnt.cpp:1911–1930  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1909}
1910
1911void xEntAnimateCollision(xEnt& ent, bool on)
1912{
1913 if (on && !(ent.moreFlags & 0x20))
1914 {
1915 ent.moreFlags |= 0x20;
1916
1917 if (!ent.frame)
1918 {
1919 ent.frame = (xEntFrame*)xMemAllocSize(sizeof(xEntFrame));
1920
1921 memset(ent.frame, 0, sizeof(xEntFrame));
1922 }
1923
1924 anim_coll::reset(ent);
1925 }
1926 else if (!on && ent.moreFlags & 0x20)
1927 {
1928 ent.moreFlags &= (U8)~0x20;
1929 }
1930}
1931
1932bool xEntValidType(U8 type)
1933{

Callers 1

Calls 2

memsetFunction · 0.85
resetFunction · 0.70

Tested by

no test coverage detected