Fix Fitness

- compare both textures with the same side up
- load target from the filename passed to the function
This commit is contained in:
Joscha 2017-05-21 00:01:23 +00:00
parent 5c10ba4a78
commit fb74671204
2 changed files with 5 additions and 5 deletions

View file

@ -55,7 +55,7 @@ bool Fitness::loadTarget(std::string filename)
// load the image
sf::Texture tex;
if (!tex.loadFromFile("tom-face.png")) {
if (!tex.loadFromFile(filename)) {
return false;
}