diff options
Diffstat (limited to 'src/player.c')
-rw-r--r-- | src/player.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/player.c b/src/player.c index b7dcde5..b0132f8 100644 --- a/src/player.c +++ b/src/player.c @@ -29,6 +29,8 @@ player_update(void) if (collide(3, pos)) { g_world.x += 1; + if (g_world.cells[g_world.x + g_world.y * g_world.width] == nullptr) + g_world.x = 0; return player_init(); } |