diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-03 20:48:45 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-03 20:48:45 (GMT) |
| commit | 61739018759847c4d356a7596926652856030306 (patch) | |
| tree | 59dd50893ecb47bfab709d778b8a8a02dfc83331 /src/cat/TPTScriptInterface.cpp | |
| parent | f586a5585f3838e78cf6880b84d4c369040b5f67 (diff) | |
| download | powder-61739018759847c4d356a7596926652856030306.zip powder-61739018759847c4d356a7596926652856030306.tar.gz | |
Old TPT console commands with "!" prefix
Diffstat (limited to 'src/cat/TPTScriptInterface.cpp')
| -rw-r--r-- | src/cat/TPTScriptInterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp index 137ad58..44f5d2e 100644 --- a/src/cat/TPTScriptInterface.cpp +++ b/src/cat/TPTScriptInterface.cpp @@ -167,8 +167,8 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words) { //Arguments from stack StringType property = eval(words); - AnyType value = eval(words); AnyType selector = eval(words); + AnyType value = eval(words); Simulation * sim = m->GetSimulation(); @@ -187,7 +187,7 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words) { ui::Point tempPoint = ((PointType)selector).Value(); if(tempPoint.X<0 || tempPoint.Y<0 || tempPoint.Y >= YRES || tempPoint.X >= XRES) - throw GeneralException("Invalid particle"); + throw GeneralException("Invalid position"); } else |
