diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-19 11:50:04 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-19 11:50:04 (GMT) |
| commit | 7d8c6c7f868c7200143f732aff3e5ba3738c337d (patch) | |
| tree | 4ec3ce5f82aca780e1fb8b1e3de88b55a162ffd7 /src/cat/TPTScriptInterface.cpp | |
| parent | 4c63a6f5932be96dadb5bcc7003d6b12ed2c4b89 (diff) | |
| download | powder-7d8c6c7f868c7200143f732aff3e5ba3738c337d.zip powder-7d8c6c7f868c7200143f732aff3e5ba3738c337d.tar.gz | |
TPTScript: Allow numbers with decimal point
Diffstat (limited to 'src/cat/TPTScriptInterface.cpp')
| -rw-r--r-- | src/cat/TPTScriptInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp index d37bff3..dc466db 100644 --- a/src/cat/TPTScriptInterface.cpp +++ b/src/cat/TPTScriptInterface.cpp @@ -85,7 +85,7 @@ ValueType TPTScriptInterface::testType(std::string word) //Basic type parseNumber: for(i = 0; i < word.length(); i++) - if(!(rawWord[i] >= '0' && rawWord[i] <= '9')) + if(!(rawWord[i] >= '0' && rawWord[i] <= '9') && rawWord[i] != '.') { if(rawWord[i] == ',' && rawWord[i+1] >= '0' && rawWord[i+1] <= '9') goto parsePoint; |
