diff --git a/src/experimental/iw5c/xsk/compiler.cpp b/src/experimental/iw5c/xsk/compiler.cpp index 1a802b26..26e14260 100644 --- a/src/experimental/iw5c/xsk/compiler.cpp +++ b/src/experimental/iw5c/xsk/compiler.cpp @@ -1996,7 +1996,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2016,7 +2016,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/experimental/iw6c/xsk/compiler.cpp b/src/experimental/iw6c/xsk/compiler.cpp index 85003e58..48b26ea4 100644 --- a/src/experimental/iw6c/xsk/compiler.cpp +++ b/src/experimental/iw6c/xsk/compiler.cpp @@ -1996,7 +1996,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2016,7 +2016,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/experimental/s1c/xsk/compiler.cpp b/src/experimental/s1c/xsk/compiler.cpp index fb28c3ea..1fbc7d64 100644 --- a/src/experimental/s1c/xsk/compiler.cpp +++ b/src/experimental/s1c/xsk/compiler.cpp @@ -2004,7 +2004,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2024,7 +2024,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/h1/xsk/compiler.cpp b/src/h1/xsk/compiler.cpp index 49539c0c..b7ce4216 100644 --- a/src/h1/xsk/compiler.cpp +++ b/src/h1/xsk/compiler.cpp @@ -2001,7 +2001,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2021,7 +2021,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/h2/xsk/compiler.cpp b/src/h2/xsk/compiler.cpp index 8b6fe198..b750a4f7 100644 --- a/src/h2/xsk/compiler.cpp +++ b/src/h2/xsk/compiler.cpp @@ -2001,7 +2001,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2021,7 +2021,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/iw5/xsk/compiler.cpp b/src/iw5/xsk/compiler.cpp index efc31823..958863d7 100644 --- a/src/iw5/xsk/compiler.cpp +++ b/src/iw5/xsk/compiler.cpp @@ -1993,7 +1993,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2013,7 +2013,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/iw6/xsk/compiler.cpp b/src/iw6/xsk/compiler.cpp index 20ace881..58251c89 100644 --- a/src/iw6/xsk/compiler.cpp +++ b/src/iw6/xsk/compiler.cpp @@ -1993,7 +1993,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2013,7 +2013,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/iw7/xsk/compiler.cpp b/src/iw7/xsk/compiler.cpp index 781e1465..a4a1dd2a 100644 --- a/src/iw7/xsk/compiler.cpp +++ b/src/iw7/xsk/compiler.cpp @@ -1993,7 +1993,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2013,7 +2013,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/iw8/xsk/compiler.cpp b/src/iw8/xsk/compiler.cpp index 25c4e5d1..6b9b1721 100644 --- a/src/iw8/xsk/compiler.cpp +++ b/src/iw8/xsk/compiler.cpp @@ -2052,7 +2052,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2072,7 +2072,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/s1/xsk/compiler.cpp b/src/s1/xsk/compiler.cpp index 0ae391df..ed7a07fc 100644 --- a/src/s1/xsk/compiler.cpp +++ b/src/s1/xsk/compiler.cpp @@ -2001,7 +2001,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2021,7 +2021,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/s2/xsk/compiler.cpp b/src/s2/xsk/compiler.cpp index 5f790544..9490592e 100644 --- a/src/s2/xsk/compiler.cpp +++ b/src/s2/xsk/compiler.cpp @@ -2001,7 +2001,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2021,7 +2021,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/s4/xsk/compiler.cpp b/src/s4/xsk/compiler.cpp index 11c1d2df..305dfa41 100644 --- a/src/s4/xsk/compiler.cpp +++ b/src/s4/xsk/compiler.cpp @@ -2052,7 +2052,7 @@ void compiler::emit_expr_animation(const ast::expr_animation::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimation, { "''", expr->value }); + emit_opcode(opcode::OP_GetAnimation, { "", expr->value }); } else { @@ -2072,7 +2072,7 @@ void compiler::emit_expr_animtree(const ast::expr_animtree::ptr& expr) if (tree.loaded) { - emit_opcode(opcode::OP_GetAnimTree, "''"); + emit_opcode(opcode::OP_GetAnimTree, ""); } else { diff --git a/src/utils/xsk/gsc/nodetree.cpp b/src/utils/xsk/gsc/nodetree.cpp index b4bdcdba..8586630a 100644 --- a/src/utils/xsk/gsc/nodetree.cpp +++ b/src/utils/xsk/gsc/nodetree.cpp @@ -1297,12 +1297,7 @@ auto program::print() const -> std::string for (const auto& entry : declarations) { - if (entry == kind::decl_thread) - { - data += "\n"; - } - - data += entry.print(); + data += "\n" + entry.print(); } return data;