From 7c30b163571b2d771c5f30e092981c3d59ded49c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anselme=20FRAN=C3=87OIS?= Date: Mon, 16 May 2016 21:12:45 +0200 Subject: [PATCH] fixed camera movement when zoomed --- src/dude.h | 4 ++-- src/pixelpipeline.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dude.h b/src/dude.h index 0578438..eafbfbb 100644 --- a/src/dude.h +++ b/src/dude.h @@ -9,8 +9,8 @@ private: Coord pos; Info info; bool dead; - char memory[DUDE_MEMORY_SIZE]; - BehaviorFunction behavior; + char memory[DUDE_MEMORY_SIZE]; + BehaviorFunction behavior; public: diff --git a/src/pixelpipeline.h b/src/pixelpipeline.h index 25720ee..fb6997c 100644 --- a/src/pixelpipeline.h +++ b/src/pixelpipeline.h @@ -37,7 +37,7 @@ public: virtual void renderGL(Scene *scene); virtual void resizeGL(int w, int h); - void cameraMove(int x, int y) { m_camera.x -= x*m_camera.z; m_camera.y += y*m_camera.z; } + void cameraMove(int x, int y) { m_camera.x -= x; m_camera.y += y; } void cameraZoom(int nbScrolls); };