Remove obsolete code from TPTScriptInterface
This commit is contained in:
parent
9bc939d422
commit
b83043e2a6
@ -261,10 +261,7 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words)
|
|||||||
newValue = GetParticleType(((StringType)value).Value());
|
newValue = GetParticleType(((StringType)value).Value());
|
||||||
if (newValue < 0 || newValue >= PT_NUM)
|
if (newValue < 0 || newValue >= PT_NUM)
|
||||||
{
|
{
|
||||||
if (((StringType)value).Value() == "GOLD" || ((StringType)value).Value() == "gold")
|
throw GeneralException("Invalid element");
|
||||||
throw GeneralException("No, GOLD will not be an element");
|
|
||||||
else
|
|
||||||
throw GeneralException("Invalid element");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user