Skip to content

Commit

Permalink
Revert "Emit a message when trying to use something non-integral as a…
Browse files Browse the repository at this point in the history
… boolean"

This reverts commit 5a8275b9154e85168d09de625a497bb8e20f17d4.

This patch was not applicable and caused a crash with some mods.
  • Loading branch information
drfrag666 committed Feb 13, 2019
1 parent ba4f5bb commit 5fa014c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/thingdef/thingdef_expression.cpp
Expand Up @@ -292,23 +292,18 @@ FxExpression *FxExpression::Resolve(FCompileContext &ctx)

FxExpression *FxExpression::ResolveAsBoolean(FCompileContext &ctx)
{
///FIXME: Use an actual boolean type
FxExpression *x = Resolve(ctx);
if (x != NULL)
{
switch (x->ValueType.Type)
{
case VAL_Int:
case VAL_Sound:
case VAL_Color:
case VAL_Name:
x->ValueType = VAL_Int;
break;

default:
ScriptPosition.Message(MSG_ERROR, "Not an integral type");
delete this;
return NULL;
break;
}
}
Expand Down

0 comments on commit 5fa014c

Please sign in to comment.