3 int AreaInMap(TMap
*m
, Area
*p
, int FromLayer
, int ToLayer
){ //returns 0 if p collides with something in m otherwise 1
5 if(!AreaInAreaComp(m
->BoundingArea
, p
)){
8 for(i
= FromLayer
; i
< m
->noLayer
&& i
<= ToLayer
; i
++){
9 for(j
=0; j
< m
->Layer
[i
]->noFArea
; j
++)
10 if(AreaInArea(p
, m
->Layer
[i
]->FArea
[j
]))