diff options
author | PaweX <wepc@10g.pl> | 2013-02-13 13:56:50 +0100 |
---|---|---|
committer | PaweX <wepc@10g.pl> | 2013-02-13 13:56:50 +0100 |
commit | bcd06bd0e863648bf2850ef9257374085c735c97 (patch) | |
tree | e27a834a1fe22f7787686fcbf16b168e81dde639 /src | |
parent | f25aed44d28f97d900bb9f4857cfcf282b80737c (diff) | |
download | colobot-bcd06bd0e863648bf2850ef9257374085c735c97.tar.gz colobot-bcd06bd0e863648bf2850ef9257374085c735c97.tar.bz2 colobot-bcd06bd0e863648bf2850ef9257374085c735c97.zip |
Function aim(x, y) - "Giv" to "Get"
Diffstat (limited to 'src')
-rw-r--r-- | src/script/script.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/script/script.cpp b/src/script/script.cpp index 252f2cb..c73a88f 100644 --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -2191,12 +2191,12 @@ bool CScript::rFire(CBotVar* var, CBotVar* result, int& exception, void* user) CBotTypResult cAim(CBotVar* &var, void* user) { if ( var == 0 ) return CBotTypResult(CBotErrLowParam); - if ( var->GivType() > CBotTypDouble ) return CBotTypResult(CBotErrBadNum); - var = var->GivNext(); + if ( var->GetType() > CBotTypDouble ) return CBotTypResult(CBotErrBadNum); + var = var->GetNext(); if ( var == 0 ) return CBotTypResult(CBotTypFloat); - if ( var->GivType() > CBotTypDouble ) return CBotTypResult(CBotErrBadNum); - var = var->GivNext(); + if ( var->GetType() > CBotTypDouble ) return CBotTypResult(CBotErrBadNum); + var = var->GetNext(); if ( var != 0 ) return CBotTypResult(CBotErrOverParam); |