diff options
author | krzys-h <krzys_h@interia.pl> | 2013-05-19 16:25:53 +0200 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2013-05-19 16:27:33 +0200 |
commit | b9d0ee034e1e0b78cbca137cc2f39930fb7ad127 (patch) | |
tree | 4185c45cb5afaefb6e681409662e8f0f9d64661e /src/script/script.h | |
parent | 7662f312b399b58faf20db4a850a2b0298d659df (diff) | |
download | colobot-b9d0ee034e1e0b78cbca137cc2f39930fb7ad127.tar.gz colobot-b9d0ee034e1e0b78cbca137cc2f39930fb7ad127.tar.bz2 colobot-b9d0ee034e1e0b78cbca137cc2f39930fb7ad127.zip |
Running program in robots created using object.factory()
Diffstat (limited to 'src/script/script.h')
-rw-r--r-- | src/script/script.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/script.h b/src/script/script.h index 75f0d72..e3d3b7a 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -78,7 +78,7 @@ public: void GetError(char* buffer); void New(Ui::CEdit* edit, const char* name); - bool SendScript(char* text); + bool SendScript(const char* text); bool ReadScript(const char* filename); bool WriteScript(const char* filename); bool ReadStack(FILE *file); @@ -192,7 +192,7 @@ private: public: static CBotTypResult cBusy(CBotVar* thisclass, CBotVar* &var); - static CBotTypResult cClassOneFloat(CBotVar* thisclass, CBotVar* &var); + static CBotTypResult cFactory(CBotVar* thisclass, CBotVar* &var); static CBotTypResult cClassNull(CBotVar* thisclass, CBotVar* &var); static bool rBusy(CBotVar* thisclass, CBotVar* var, CBotVar* result, int& exception); |