| 1909 | } |
| 1910 | |
| 1911 | void 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 | |
| 1932 | bool xEntValidType(U8 type) |
| 1933 | { |
no test coverage detected