Pause for half a second
#6
Make a function, static bool cPiston::IsMetaExtended(NIBBLETYPE a_BlockMeta), that returns true if the piston is extended when it has the specified meta. This will simplify the condition and will be re-usable.

I believe you got bitten by C++ operator precedence, the inequality operator (!=) is evaluated before the bitwise and (&).
Reply
Thanks given by:


Messages In This Thread
Pause for half a second - by tigerw - 08-13-2013, 10:46 PM
RE: Pause for half a second - by xoft - 08-13-2013, 11:01 PM
RE: Pause for half a second - by tigerw - 08-14-2013, 12:18 AM
RE: Pause for half a second - by xoft - 08-14-2013, 12:55 AM
RE: Pause for half a second - by tigerw - 08-14-2013, 01:15 AM
RE: Pause for half a second - by xoft - 08-14-2013, 05:45 AM



Users browsing this thread: 2 Guest(s)