partilces get velocity from originating lilanek
[Lilanci.git] / map.c
blob1f8025411267a6428c8c3166484258571dc61143
1 #include "map.h"
3 int AreaInMap(TMap *m, Area *p, int FromLayer, int ToLayer){ //returns 0 if p collides with something in m otherwise 1
4 int i,j;
5 if(!AreaInAreaComp(m->BoundingArea, p)){
6 return 0;
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]))
11 return 0;
13 return 1;