From a662150327f010d42e08a31c736fe3994d10042d Mon Sep 17 00:00:00 2001 From: ManDude <7569514+ManDude@users.noreply.github.com> Date: Tue, 26 Sep 2023 18:48:13 +0100 Subject: [PATCH] [decompiler] do not use `time-elapsed?` on unsigned comps (#3031) --- decompiler/IR2/FormExpressionAnalysis.cpp | 6 +- goal_src/jak1/engine/entity/ambient.gc | 2 +- goal_src/jak1/engine/target/logic-target.gc | 2 +- goal_src/jak1/engine/target/target.gc | 8 +- goal_src/jak1/engine/target/target2.gc | 4 +- .../jak1/levels/flut_common/target-flut.gc | 6 +- goal_src/jak2/engine/target/logic-target.gc | 2 +- goal_src/jak2/engine/target/target-swim.gc | 2 +- goal_src/jak2/engine/target/target.gc | 2 +- .../jak2/levels/common/race/race-manager.gc | 2 +- .../jak1/engine/entity/ambient_REF.gc | 2 +- .../reference/jak1/engine/nav/path-h_REF.gc | 169 --------- .../reference/jak1/engine/nav/path_REF.gc | 337 ------------------ .../jak1/engine/target/logic-target_REF.gc | 2 +- .../jak1/engine/target/target2_REF.gc | 4 +- .../jak1/engine/target/target_REF.gc | 8 +- .../levels/flut_common/target-flut_REF.gc | 6 +- .../jak2/engine/target/logic-target_REF.gc | 2 +- .../jak2/engine/target/target-swim_REF.gc | 2 +- .../jak2/engine/target/target_REF.gc | 2 +- .../levels/common/race/race-manager_REF.gc | 2 +- 21 files changed, 33 insertions(+), 539 deletions(-) delete mode 100644 test/decompiler/reference/jak1/engine/nav/path-h_REF.gc delete mode 100644 test/decompiler/reference/jak1/engine/nav/path_REF.gc diff --git a/decompiler/IR2/FormExpressionAnalysis.cpp b/decompiler/IR2/FormExpressionAnalysis.cpp index f7b49898444..6e8d04457bd 100644 --- a/decompiler/IR2/FormExpressionAnalysis.cpp +++ b/decompiler/IR2/FormExpressionAnalysis.cpp @@ -5284,14 +5284,14 @@ FormElement* ConditionElement::make_time_elapsed(const Env& env, std::vector