diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2013-07-12 14:25:10 +0100 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2013-07-12 14:25:10 +0100 |
commit | 26984642c7d2a114c342bdb6ce64c65ee71c592c (patch) | |
tree | 4f8486e9b83ce0fdd6ee956dec23a9db7934902b | |
parent | aa0544a73122cd4f18bfcb28e8ddebf348686f5d (diff) |
-rw-r--r-- | Sprite.cpp | 2 | ||||
-rw-r--r-- | Sprite.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -27,7 +27,7 @@ bool Sprite::visible() { return isVisible; } -bool Sprite::setImage(std::string path) { +void Sprite::setImage(std::string path) { image = loadImage(path); clip[0].x = 0; clip[0].y = 0; @@ -21,7 +21,7 @@ class Sprite { bool visible(); // Load in this sprite's image - bool setImage(std::string path); + void setImage(std::string path); // TODO: Add method that can set reference to an already loaded image // This sprite's image SDL_Surface *image; |