Moved blockticking into blockhandler classes.
Also slightly refactored the variable / argument names (BlockID is deprecated, use BlockType instead) git-svn-id: http://mc-server.googlecode.com/svn/trunk@921 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -13,8 +13,8 @@ class cBlockOreHandler :
|
||||
public cBlockHandler
|
||||
{
|
||||
public:
|
||||
cBlockOreHandler(BLOCKTYPE a_BlockID)
|
||||
: cBlockHandler(a_BlockID)
|
||||
cBlockOreHandler(BLOCKTYPE a_BlockType)
|
||||
: cBlockHandler(a_BlockType)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ public:
|
||||
short Meta = 0;
|
||||
|
||||
MTRand r1;
|
||||
switch (m_BlockID)
|
||||
switch (m_BlockType)
|
||||
{
|
||||
case E_BLOCK_LAPIS_ORE:
|
||||
{
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
switch (m_BlockID)
|
||||
switch (m_BlockType)
|
||||
{
|
||||
case E_BLOCK_DIAMOND_ORE:
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user