From bcd06bd0e863648bf2850ef9257374085c735c97 Mon Sep 17 00:00:00 2001 From: PaweX Date: Wed, 13 Feb 2013 13:56:50 +0100 Subject: Function aim(x, y) - "Giv" to "Get" --- src/script/script.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/script/script.cpp') 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); -- cgit v1.2.3-1-g7c22