void Animated_object::write_ireg ( ostream& out ) { if (!ireg) return; unsigned char buf[7]; buf[0] = 6; write_common_ireg(&buf[1]); buf[5] = (get_lift()&15)<<4; buf[6] = get_quality(); out.write((char*)buf, sizeof(buf)); }
virtual void write_ireg(ostream& out) {  }
void Animated_object::write_ireg	(	ostream& out	)	{if (!ireg)		return;			// Not from an Ireg file.	unsigned char buf[7];		// 6-byte entry + length-byte.	buf[0] = 6;	write_common_ireg(&buf[1]);	buf[5] = (get_lift()&15)<<4;	buf[6] = get_quality();	out.write((char*)buf, sizeof(buf));	}