diff options
author | David Walter Seikel | 2014-05-14 19:50:41 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-14 19:50:41 +1000 |
commit | a60bb6fbc1ad1e4e7c100d1ccd166d6e219473ac (patch) | |
tree | 8d0513b4f4f82de8b575b729b69e25524abe03ea /src/LuaSL | |
parent | Implement llGetNotecardLine(). (diff) | |
download | SledjHamr-a60bb6fbc1ad1e4e7c100d1ccd166d6e219473ac.zip SledjHamr-a60bb6fbc1ad1e4e7c100d1ccd166d6e219473ac.tar.gz SledjHamr-a60bb6fbc1ad1e4e7c100d1ccd166d6e219473ac.tar.bz2 SledjHamr-a60bb6fbc1ad1e4e7c100d1ccd166d6e219473ac.tar.xz |
LSL's EOF sucks, Lua's 0 isn't false sucks more. Work around both.
Diffstat (limited to 'src/LuaSL')
-rw-r--r-- | src/LuaSL/LuaSL_compile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LuaSL/LuaSL_compile.c b/src/LuaSL/LuaSL_compile.c index 90c9ac1..e31e157 100644 --- a/src/LuaSL/LuaSL_compile.c +++ b/src/LuaSL/LuaSL_compile.c | |||
@@ -1613,11 +1613,12 @@ static void outputRawStatement(FILE *file, outputMode mode, LSL_Statement *state | |||
1613 | fprintf(file, " "); | 1613 | fprintf(file, " "); |
1614 | if (LSL_ELSE != statement->type) | 1614 | if (LSL_ELSE != statement->type) |
1615 | { | 1615 | { |
1616 | fprintf(file, "_LSL.toBool("); | ||
1616 | if (statement->parenthesis) | 1617 | if (statement->parenthesis) |
1617 | outputRawParenthesisToken(file, mode, statement->parenthesis, ""); | 1618 | outputRawParenthesisToken(file, mode, statement->parenthesis, ""); |
1618 | else | 1619 | else |
1619 | outputLeaf(file, mode, statement->expressions); | 1620 | outputLeaf(file, mode, statement->expressions); |
1620 | fprintf(file, " then\n"); | 1621 | fprintf(file, ") then\n"); |
1621 | } | 1622 | } |
1622 | if (statement->block) | 1623 | if (statement->block) |
1623 | outputRawBlock(file, mode, statement->block, FALSE); | 1624 | outputRawBlock(file, mode, statement->block, FALSE); |