diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-06 16:04:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-06 16:04:17 +0200 |
commit | 2085e643eb422eedba887c40ff4c6331f6f247c2 (patch) | |
tree | ffc3f75a0dfbe55f361d81166ed0ede6d43f7e36 /editor/tests/walk-test.cpp | |
parent | cb484be64de45ad6529952366273978502a17b6d (diff) |
walk script wip
Diffstat (limited to 'editor/tests/walk-test.cpp')
-rw-r--r-- | editor/tests/walk-test.cpp | 3 |
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; } |