From 24efa6f8645c2f310997c212907fb4e591d0afec Mon Sep 17 00:00:00 2001 From: "lapayo94@gmail.com" Date: Thu, 22 Dec 2011 21:36:24 +0000 Subject: =?UTF-8?q?Digging=20leaves=20with=20shears=20now=20drops=20leaves?= =?UTF-8?q?=20Falling=20Sand=20now=20notifies=20water=20around=20Implement?= =?UTF-8?q?ed=20Function=20to=20get=20the=20relative=20chunk=20position=20?= =?UTF-8?q?in=20the=20total=20position=20(cChunk::PositionToWorldPosition)?= =?UTF-8?q?=20Pistons=20don=C2=B4t=20drop=20water=20and=20lava=20items=20a?= =?UTF-8?q?nymore=20when=20stopping=20water/lava=20implemented=20Getter=20?= =?UTF-8?q?for=20lava=20and=20water=20simulator=20IsBlockWater=20and=20IsB?= =?UTF-8?q?lockLava=20function=20in=20Defines.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://mc-server.googlecode.com/svn/trunk@97 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Defines.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source/Defines.h') diff --git a/source/Defines.h b/source/Defines.h index 6d86da825..838eb1340 100644 --- a/source/Defines.h +++ b/source/Defines.h @@ -46,11 +46,16 @@ inline bool IsValidItem( int a_ItemID ) //tolua_export return IsValidBlock( a_ItemID ); } //tolua_export -inline bool IsBlockWater (char a_BlockID) +inline bool IsBlockWater(char a_BlockID) { return (a_BlockID == E_BLOCK_WATER || a_BlockID == E_BLOCK_STATIONARY_WATER); } +inline bool IsBlockLava(char a_BlockID) +{ + return (a_BlockID == E_BLOCK_LAVA || a_BlockID == E_BLOCK_STATIONARY_LAVA); +} + inline void AddDirection( int & a_X, char & a_Y, int & a_Z, char a_Direction, bool a_bInverse = false ) //tolua_export {//tolua_export if( !a_bInverse ) -- cgit v1.2.3