summaryrefslogtreecommitdiffhomepage
path: root/editor/app.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-17 15:31:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-17 23:23:12 +0100
commit72782ef1298deabbae0598d0d50159210ed64b27 (patch)
tree6107108a7733b9beda77a36dea0209fe1367d8b9 /editor/app.cpp
parent90742e5c5abd4fb996f548e0cff6661a950057c1 (diff)
buffer flush (wip)
Diffstat (limited to 'editor/app.cpp')
-rw-r--r--editor/app.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/editor/app.cpp b/editor/app.cpp
index aa615137..49d8e96c 100644
--- a/editor/app.cpp
+++ b/editor/app.cpp
@@ -51,7 +51,12 @@ void app::reset_world(struct world&& w)
return;
auto& w2 = M->reset_world(std::move(w));
w2.collect(true);
- _character_id = w2.make_entity<character>(global_coords{}, true)->id;
+ {
+ character_proto cproto;
+ cproto.name = "Player"_s;
+ cproto.playable = true;
+ _character_id = w2.make_entity<character>(global_coords{}, cproto)->id;
+ }
}
int app::exec()