1.8 Changes
#17
The currently biggest problem is the encoding from x,y,z to Position.
Current Code:
void WritePosition(int x, int y, int z)
		{
			Int64 encoded_x = (x & 0x3FFFFFF) << 38;
			Int64 encoded_y = (y & 0xFFF) << 26;
			Int64 encoded_z = (z & 0x3FFFFFF);
			Int64 value = encoded_x | encoded_y | encoded_z;

			m_Out.WriteBEInt64(value);
		}
Reply
Thanks given by:


Messages In This Thread
1.8 Changes - by daniel0916 - 02-03-2014, 01:37 AM
RE: 1.8 Changes - by daniel0916 - 02-03-2014, 05:04 AM
RE: 1.8 Changes - by xoft - 02-03-2014, 05:18 AM
RE: 1.8 Changes - by daniel0916 - 02-03-2014, 05:38 AM
RE: 1.8 Changes - by daniel0916 - 02-04-2014, 12:41 AM
RE: 1.8 Changes - by worktycho - 02-04-2014, 02:56 AM
RE: 1.8 Changes - by daniel0916 - 02-04-2014, 04:12 AM
RE: 1.8 Changes - by worktycho - 02-04-2014, 04:27 AM
RE: 1.8 Changes - by daniel0916 - 02-04-2014, 05:00 AM
RE: 1.8 Changes - by xoft - 02-04-2014, 05:04 AM
RE: 1.8 Changes - by daniel0916 - 02-05-2014, 03:00 AM
RE: 1.8 Changes - by FakeTruth - 02-05-2014, 07:03 AM
RE: 1.8 Changes - by daniel0916 - 02-05-2014, 04:05 PM
RE: 1.8 Changes - by FakeTruth - 02-05-2014, 11:07 PM
RE: 1.8 Changes - by xoft - 02-06-2014, 01:30 AM
RE: 1.8 Changes - by daniel0916 - 02-07-2014, 03:20 AM
RE: 1.8 Changes - by daniel0916 - 02-09-2014, 05:42 AM
RE: 1.8 Changes - by xoft - 02-09-2014, 06:55 AM
RE: 1.8 Changes - by tigerw - 02-09-2014, 07:05 AM
RE: 1.8 Changes - by xoft - 02-09-2014, 07:07 AM
RE: 1.8 Changes - by daniel0916 - 02-09-2014, 08:41 PM



Users browsing this thread: 4 Guest(s)