diff options
author | PaweX <wepc@10g.pl> | 2013-02-13 13:48:56 +0100 |
---|---|---|
committer | PaweX <wepc@10g.pl> | 2013-02-13 13:48:56 +0100 |
commit | f25aed44d28f97d900bb9f4857cfcf282b80737c (patch) | |
tree | aaad9dd12e6f65ed54af47f40d40aa9a069815fc /src/script/script.cpp | |
parent | 551d6c4d95182b8574e9d237fc26400414a609f2 (diff) | |
download | colobot-f25aed44d28f97d900bb9f4857cfcf282b80737c.tar.gz colobot-f25aed44d28f97d900bb9f4857cfcf282b80737c.tar.bz2 colobot-f25aed44d28f97d900bb9f4857cfcf282b80737c.zip |
aim(x,y) - "Giv" to "Get"
Diffstat (limited to 'src/script/script.cpp')
-rw-r--r-- | src/script/script.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/script.cpp b/src/script/script.cpp index ab8a1c1..252f2cb 100644 --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -2216,9 +2216,9 @@ bool CScript::rAim(CBotVar* var, CBotVar* result, int& exception, void* user) if ( script->m_primaryTask == 0 ) // no task in progress? { script->m_primaryTask = new CTaskManager(script->m_iMan, script->m_object); - x = var->GivValFloat(); - var = var->GivNext(); - var == 0 ? y=0.0f : y=var->GivValFloat(); + x = var->GetValFloat(); + var = var->GetNext(); + var == 0 ? y=0.0f : y=var->GetValFloat(); err = script->m_primaryTask->StartTaskGunGoal(x*Math::PI/180.0f, y*Math::PI/180.0f); if ( err != ERR_OK ) { |