From 07826336c54d46200533c7051850dcdca78830ac Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 20 May 2013 13:18:01 +0200 Subject: [PATCH] Disabled key repeat (not needed). --- source/Game.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/Game.cpp b/source/Game.cpp index 8ea7889..7886487 100644 --- a/source/Game.cpp +++ b/source/Game.cpp @@ -25,19 +25,20 @@ Game::Game(sf::RenderWindow& window) : mQuit(false), mPaused(false) { mWindow.setFramerateLimit(FPS_GOAL); - mWindow.setKeyRepeatEnabled(true); + mWindow.setKeyRepeatEnabled(false); sf::IntRect area(-32, -32, 64, 64); mGenerator.generateTiles(area); mPlayer = std::shared_ptr(new Player(mWorld, mPathfinder, mGenerator.getPlayerSpawn())); mWorld.insertCharacter(mPlayer); - + /* auto enemyPositions = mGenerator.getEnemySpawns(area); for (const auto& position : enemyPositions) { if (thor::length(mPlayer->getPosition() - position) > Character::VISION_DISTANCE) mWorld.insertCharacter(std::shared_ptr(new Enemy(mWorld, mPathfinder, position))); - } + } + */ } /**