if (obj->get_npc_num() <= 0 && obj != gwin->get_main_actor())
if (obj == gwin->get_main_actor()) return Game::get_game_type() != SERPENT_ISLE; if (obj->get_npc_num() <= 0)
static int Check_mask	(	Game_window *gwin,	Game_object *obj,	int mask	)	{	if (mask == 4 ||		// Seems to also be all NPC's.// 1Feb01		return (obj->get_party_id() >= 0 || //					obj == gwin->get_main_actor());	    mask == 8)			// All NPCs.		{		if (obj->is_monster())			return 1;		if (obj->get_npc_num() <= 0 && obj != gwin->get_main_actor())			return 0;	// Not an NPC & not the Avatar.		return 1;		}	if (mask == 16)			// Egg or barge.		return obj->is_egg() || obj->get_shapenum() == 0x3c1;	if (mask == 32)			// ??? Used in 'reveal' to find inv.					// objs, and to detect blocked gplank.		return 1;		// For now.+++++	if (!mask)			// Guessing a bit here.		return !obj->is_egg();	// Don't pass eggs if 0.	return 1;	}