From 69e52e5f24d3e02dde20bda5ee322697bafc92c8 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Fri, 12 Apr 2013 23:28:44 +0200 Subject: Removed find() & repeat() functions Issue #168 --- src/CBot/CBot.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/CBot/CBot.cpp') diff --git a/src/CBot/CBot.cpp b/src/CBot/CBot.cpp index ed6831d..4a16b6b 100644 --- a/src/CBot/CBot.cpp +++ b/src/CBot/CBot.cpp @@ -186,7 +186,7 @@ CBotInstr* CBotInstr::Compile(CBotToken* &p, CBotCStack* pStack) { type = pp->GetType(); // these instructions accept only lable - if (!IsOfTypeList(pp, ID_WHILE, ID_FOR, ID_DO, ID_REPEAT, 0)) + if (!IsOfTypeList(pp, ID_WHILE, ID_FOR, ID_DO, 0)) { pStack->SetError(TX_LABEL, pp->GetStart()); return NULL; @@ -205,9 +205,6 @@ CBotInstr* CBotInstr::Compile(CBotToken* &p, CBotCStack* pStack) case ID_DO: return CBotDo::Compile(p, pStack); - case ID_REPEAT: - return CBotRepeat::Compile(p, pStack); - case ID_BREAK: case ID_CONTINUE: return CBotBreak::Compile(p, pStack); -- cgit v1.2.3-1-g7c22