From 4fe87948d382b345ab4d251d68d88f0fce66e7f8 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Fri, 28 May 2004 18:41:58 +0000 Subject: [PATCH] Just removed a part of the applied patch. IMO it is so much better when player changes direction. Didn't touch the speed. SVN-Revision: 1352 --- src/camera.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/camera.cpp b/src/camera.cpp index 41ffd9840..bef202dfb 100644 --- a/src/camera.cpp +++ b/src/camera.cpp @@ -202,10 +202,10 @@ Camera::scroll_normal(float elapsed_time) || (player->dir == ::RIGHT && scrollchange == LEFT)) scrollchange = NONE; // when in left 1/3rd of screen scroll left - if(player->base.x < translation.x + screen->w/3 - 32 && do_backscrolling) + if(player->base.x < translation.x + screen->w/3 && do_backscrolling) scrollchange = LEFT; // scroll right when in right 1/3rd of screen - else if(player->base.x > translation.x + screen->w/3*2 + 32) + else if(player->base.x > translation.x + screen->w/3*2) scrollchange = RIGHT; // calculate our scroll target depending on scroll mode -- 2.11.0