Fix Fitness
- compare both textures with the same side up - load target from the filename passed to the function
This commit is contained in:
parent
5c10ba4a78
commit
fb74671204
2 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue