medfall

A super great game engine
Log | Files | Refs

commit 37a64c1398ff0352050b01c671e9f6594f84ec1f
parent 37400b8333bf414802b99607a7838818cf5dcdff
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Fri, 10 Nov 2017 21:23:50 +0200

Don't spawn inside a tree, fix crash

Diffstat:
clipmap.cc | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/clipmap.cc b/clipmap.cc @@ -217,7 +217,7 @@ GAME_INIT( game_init ) { clipmap.gpu.tile = renderer_new_mesh( mesh_config ); } - game->pos = v3( 2048, 2048, 100 ); + game->pos = v3( 2056, 2056, 70 ); game->pitch = 0; game->yaw = 45; game->sun_angle = 0.3f; @@ -267,6 +267,7 @@ GAME_FRAME( game_frame ) { if( input->keys[ KEY_N ] && input->key_edges[ KEY_N ] ) { game->noclip = !game->noclip; game->velocity = v3( 0 ); + game->on_ground = false; } dpitch -= float( input->mouse_dy * 0.25 );