diff options
author | krzys-h <krzys_h@interia.pl> | 2013-04-12 23:28:44 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-04-12 23:28:44 +0200 |
commit | 69e52e5f24d3e02dde20bda5ee322697bafc92c8 (patch) | |
tree | 19f8a0076d84f2830811f5bdec8a8ec33c1e9284 /src/CBot/CBot.cpp | |
parent | 7b2e0e6519525f872fb58df7f287eaefd3c15782 (diff) | |
download | colobot-69e52e5f24d3e02dde20bda5ee322697bafc92c8.tar.gz colobot-69e52e5f24d3e02dde20bda5ee322697bafc92c8.tar.bz2 colobot-69e52e5f24d3e02dde20bda5ee322697bafc92c8.zip |
Removed find() & repeat() functions
Issue #168
Diffstat (limited to 'src/CBot/CBot.cpp')
-rw-r--r-- | src/CBot/CBot.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
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); |