From a537f2c28acef8c43535f2326997499d29eb7e01 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 28 Feb 2024 00:50:24 +0100 Subject: enable move speed scaling with critter.speed --- editor/app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor') diff --git a/editor/app.cpp b/editor/app.cpp index 70766ccd..fe4f9b53 100644 --- a/editor/app.cpp +++ b/editor/app.cpp @@ -68,12 +68,13 @@ shared_ptr_wrapper app::ensure_player_character(world& w) { critter_proto cproto; cproto.name = "Player"_s; + cproto.speed = 4; cproto.playable = true; ret.ptr = w.make_object(w.make_id(), global_coords{}, cproto); _character_id = ret.ptr->id; } fm_debug_assert(ret.ptr); - return shared_ptr_wrapper{ret}; + return ret; } void app::reset_world(class world&& w_) -- cgit v1.2.3