From 1aeaedb93a8a4db539acb1674e0f8c421d37091e Mon Sep 17 00:00:00 2001 From: CobaltXII Date: Tue, 1 Jan 2019 12:25:01 -0500 Subject: [PATCH] Players now spawn at the top of the world --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index d08ba0a..df89bd4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -190,7 +190,9 @@ int main(int argc, char** argv) generate_world(the_world, time(NULL)); player_x = float(the_world->x_res) / 2.0f; - player_y = float(the_world->y_res) / 2.0f; + + player_y = 0.0f; + player_z = float(the_world->z_res) / 2.0f; save_world_to_file