Mercurial > LightClone
diff LightClone/Source/Bot.cpp @ 42:91e927584f92
Code cleanup
author | koryspansel |
---|---|
date | Thu, 22 Sep 2011 10:38:54 -0700 |
parents | 2caa7c7e2cb5 |
children | 95677f648a2c |
line wrap: on
line diff
--- a/LightClone/Source/Bot.cpp Thu Sep 22 10:25:35 2011 -0700 +++ b/LightClone/Source/Bot.cpp Thu Sep 22 10:38:54 2011 -0700 @@ -386,46 +386,6 @@ } /* - * Compile - */ -/* -ErrorCode Bot::Compile(Code* pInstance, uint8* pData, uint32 nSize) -{ - const uint32 nLength = pInstance->GetLength(); - - for(uint32 i = 0; i < nLength; ++i) - { - const uint32 nAction = pInstance->GetSlot(i); - - if(Action_Forward <= nAction && nAction <= Action_Light) - { - if(nSize < 2) - return Error_Fail; - - *pData++ = Instruction_Action; - *pData++ = nAction; - - nSize -= 2; - } - else - - if(Action_FunctionA <= nAction && nAction <= Action_FunctionB) - { - if(nSize < 2) - return Error_Fail; - - *pData++ = Instruction_Call; - *pData++ = nAction - Action_FunctionA + 1; - - nSize -= 2; - } - } - - return Error_Success; -} -*/ - -/* * SetupVertexBuffer */ ErrorCode Bot::SetupVertexBuffer()