From 40ce5775906df42315b743b1ad16d6a9caefb018 Mon Sep 17 00:00:00 2001 From: Milang Date: Sun, 12 Jan 2020 18:05:40 +0100 Subject: [PATCH] enble back scrolling due to high difficulty of 1-2 --- src/world.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/world.c b/src/world.c index 84ea06b..e8922b2 100755 --- a/src/world.c +++ b/src/world.c @@ -173,11 +173,12 @@ void reset_camera() } int world_get_real_x0() //mario delta en 0,0 -{ if (mario.p.x>mario_x_max) - mario_x_max=mario.p.x; - if (mario_x_max-40>mario.p.x) - mario_x_max=mario.p.x; - return min(max(mario_x_max-40,0),w_current_x*8-128); +{ //if (mario.p.x>mario_x_max) + // mario_x_max=mario.p.x; + //if (mario_x_max-40>mario.p.x) + // mario_x_max=mario.p.x; + //return min(max(mario_x_max-40,0),w_current_x*8-128); + return min(max(mario.p.x-40,0),w_current_x*8-128); } void reload_camera()