aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/cpp/Subconscious.cpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-02-12 19:49:28 +0100
committerNao Pross <naopross@thearcway.org>2018-02-12 19:49:28 +0100
commit978e96c319c4c240b5269c2dff8821a7e478f724 (patch)
treef4119494fba243d06ae7f51f784e6db59a70ea8b /src/main/cpp/Subconscious.cpp
parentMerge mafaldo's work (diff)
downloadSubconscious-old-978e96c319c4c240b5269c2dff8821a7e478f724.tar.gz
Subconscious-old-978e96c319c4c240b5269c2dff8821a7e478f724.zip
Fix pan
Diffstat (limited to 'src/main/cpp/Subconscious.cpp')
-rw-r--r--src/main/cpp/Subconscious.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/cpp/Subconscious.cpp b/src/main/cpp/Subconscious.cpp
index 9765f2f..a5f8620 100644
--- a/src/main/cpp/Subconscious.cpp
+++ b/src/main/cpp/Subconscious.cpp
@@ -35,25 +35,25 @@ void Subconscious::run()
switch (event.key.code) {
case sf::Keyboard::Up:
if (_currentScene->type == Scene::Type::WORLD) {
- static_cast<WorldScene*>(_currentScene)->pan(0, 10);
+ static_cast<WorldScene*>(_currentScene)->pan(0, -10);
}
break;
case sf::Keyboard::Down:
if (_currentScene->type == Scene::Type::WORLD) {
- static_cast<WorldScene*>(_currentScene)->pan(0, -10);
+ static_cast<WorldScene*>(_currentScene)->pan(0, 10);
}
break;
case sf::Keyboard::Left:
if (_currentScene->type == Scene::Type::WORLD) {
- static_cast<WorldScene*>(_currentScene)->pan(10, 0);
+ static_cast<WorldScene*>(_currentScene)->pan(-10, 0);
}
break;
case sf::Keyboard::Right:
if (_currentScene->type == Scene::Type::WORLD) {
- static_cast<WorldScene*>(_currentScene)->pan(-10, 0);
+ static_cast<WorldScene*>(_currentScene)->pan(10, 0);
}
break;