# Test

**URL:** <https://forum.kirupa.com/t/test/161416>\
**Category:** Uncategorized\
**Created:** [September 3, 2005, 7:55pm UTC](https://forum.kirupa.com/t/test/161416 "2005-09-03T19:55:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sirisian](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@Sirisian](https://forum.kirupa.com/u/Sirisian)\
**Post date:** [September 3, 2005, 7:55pm UTC](https://forum.kirupa.com/t/test/161416/1 "2005-09-03T19:55:39Z")

</div>

```auto

bool wallhit(SDL_Rect check, s_wall a_wall[], float altitude){
	for(int wallhit=0; wallhit<=WALLAMOUNT; wallhit++){				 
		 if (check.x+check.w > a_wall[wallhit].x && check.x < a_wall[wallhit].x + a_wall[wallhit].w && check.y+check.h > a_wall[wallhit].y && check.y < a_wall[wallhit].y + a_wall[wallhit].h){
			 if(a_wall[wallhit].c==1 && altitude==a_wall[wallhit].a){
			 return true;
			 }
		 }	 
	}
return false;
};

```
