summaryrefslogtreecommitdiffhomepage
path: root/editor/tests
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-06 16:04:17 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-06 16:04:17 +0200
commit2085e643eb422eedba887c40ff4c6331f6f247c2 (patch)
treeffc3f75a0dfbe55f361d81166ed0ede6d43f7e36 /editor/tests
parentcb484be64de45ad6529952366273978502a17b6d (diff)
walk script wip
Diffstat (limited to 'editor/tests')
-rw-r--r--editor/tests/walk-test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/tests/walk-test.cpp b/editor/tests/walk-test.cpp
index e3b6f8d5..0032dda2 100644
--- a/editor/tests/walk-test.cpp
+++ b/editor/tests/walk-test.cpp
@@ -40,10 +40,9 @@ bool pf_test::handle_mouse_click(app& a, const mouse_button_event& e, bool is_do
{
if (auto ptʹ = a.cursor_state().point())
{
-
auto C = a.ensure_player_character(m.world()).ptr;
fm_assert(C->is_dynamic());
- auto S = critter_script::make_walk_script(*ptʹ, {}, critter_script::walk_mode::line);
+ auto S = critter_script::make_walk_script(*ptʹ);
C->script.do_reassign(move(S), move(C));
return true;
}