if (get_index() == 0 && is_occupied(sitloc, actor)) return 0;
if (get_index() == 0) { if (is_occupied(sitloc, actor)) return 0; if (chair->get_abs_tile_coord() != chairloc) { static char *msgs[] = {"Put that chair back!", "Thief!!", "Thou scoundrel!!", "Not funny!", "Who moved my chair??"}; const int nmsgs = sizeof(msgs)/sizeof(msgs[0]); actor->say(msgs[rand()%nmsgs]); return 0; } }
int Sit_actor_action::handle_event	(	Actor *actor	)	{	if (get_index() == 0 &&		// First time?	    is_occupied(sitloc, actor))		return 0;		// Abort.	return Frames_actor_action::handle_event(actor);	}