2 GLOBAL _Mod_PointInLeaf
3 GLOBAL _SV_HullPointContents
9 mov eax, dword [esp+12-4] ; model
15 ; node = model->nodes;
17 mov esi, dword [eax+200]
19 ; if (node->contents < 0)
24 ; return (mleaf_t *)node;
32 mov edx, dword [esp+8+8] ; p
37 mov eax, dword [esi+36]
41 ; node = node->children[(node->plane->type < 3 ? p[node->plane->type] : DotProduct (p,node->plane->normal)) < node->plane->dist];
57 test ah, 65 ; 00000041H
59 mov esi, dword [esi+ecx*4+40]
61 ; if (node->contents < 0)
66 ; return (mleaf_t *)node;
71 ; return NULL; // never reached
86 test ah, 65 ; 00000041H
88 mov esi, dword [esi+ecx*4+40]
90 ; if (node->contents < 0)
95 ; return (mleaf_t *)node;
100 ; return NULL; // never reached
109 _SV_HullPointContents
112 mov ecx, [esp+12-4] ; num
134 mov eax, [esp+8+16] ; hull
135 mov edx, [esp+16+16] ; p
142 mov al, [edi+ebx*8+16]
145 ; num = hull->clipnodes[num].children[(hull->planes[hull->clipnodes[num].planenum].type < 3 ? p[hull->planes[hull->clipnodes[num].planenum].type] : DotProduct (hull->planes[hull->clipnodes[num].planenum].normal, p)) < hull->planes[hull->clipnodes[num].planenum].dist];
157 fstp dword [esp-4+20]
160 fcomp dword [esp-4+20]
163 test ah, 65 ; 00000041H
166 movsx ecx, word [esi+eax*2+4]
184 fcomp dword [esp-4+20]
187 test ah, 65 ; 00000041H
190 movsx ecx, word [esi+eax*2+4]