Added All back to ObjectType parser

I throught this was unused, but it's actually used in NewScript
master
krzys-h 2015-07-08 20:21:30 +02:00
parent 1361473358
commit ce760aa9a3
1 changed files with 1 additions and 0 deletions
src/object/level

View File

@ -303,6 +303,7 @@ Math::Vector CLevelParserParam::AsPoint(Math::Vector def)
ObjectType CLevelParserParam::ToObjectType(std::string value)
{
if (value == "All" ) return OBJECT_NULL; // For use in NewScript
if (value == "Any" ) return OBJECT_NULL; // For use in type= in ending conditions
if (value == "Portico" ) return OBJECT_PORTICO;
if (value == "SpaceShip" ) return OBJECT_BASE;