summaryrefslogtreecommitdiff
path: root/src/cat/TPTScriptInterface.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-05-22 22:21:17 (GMT)
committer jacob1 <jfu614@gmail.com>2013-05-22 22:21:17 (GMT)
commit41e369e68eac7b05f8cda312f9668942dc688aa7 (patch)
tree977151c1ae3f6dc5efc2af831358909d14791300 /src/cat/TPTScriptInterface.cpp
parent1588226120a03fc6dd79c2a7f950693b59b4adfe (diff)
downloadpowder-41e369e68eac7b05f8cda312f9668942dc688aa7.zip
powder-41e369e68eac7b05f8cda312f9668942dc688aa7.tar.gz
mniip: add back missing easter egg
Diffstat (limited to 'src/cat/TPTScriptInterface.cpp')
-rw-r--r--src/cat/TPTScriptInterface.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cat/TPTScriptInterface.cpp b/src/cat/TPTScriptInterface.cpp
index 43bb67b..34d1927 100644
--- a/src/cat/TPTScriptInterface.cpp
+++ b/src/cat/TPTScriptInterface.cpp
@@ -261,6 +261,9 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words)
newValue = GetParticleType(((StringType)value).Value());
if (newValue < 0 || newValue >= PT_NUM)
{
+ // TODO: add element CAKE to invalidate this
+ if (!strcasecmp(((StringType)value).Value().c_str(),"cake"))
+ throw GeneralException("Cake is a lie, not an element");
throw GeneralException("Invalid element");
}
}