No local PANEL pointer(*) declarations in C-Script (.wdl)?


Code:
PANEL* collision; // <- name collision?
function collision_shield(check_pan)
{
	if (check_pan == 0) { return(0); }
	//if (check_pan == 0) { error("collision_shield(0)");  return(0); }
	collision = check_pan;
	if((collision.pos_y > 590) && (collision.pos_y < 610))// not the entire check
	{
		return(true);
	}
	return(false);
}


Last edited by testDummy; 02/24/09 17:11.