diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-09-16 19:56:32 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-09-16 19:56:32 +0000 |
commit | 927a23261b6d974969948d0a80478f3e0b88752a (patch) | |
tree | 54eb4907d78f063c2554e9f7be6c508223736dc9 | |
parent | e0852959d2415174e6ea2701478a2916e6261aca (diff) | |
download | mana-927a23261b6d974969948d0a80478f3e0b88752a.tar.gz mana-927a23261b6d974969948d0a80478f3e0b88752a.tar.bz2 mana-927a23261b6d974969948d0a80478f3e0b88752a.tar.xz mana-927a23261b6d974969948d0a80478f3e0b88752a.zip |
Tiny error reporting improvement.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/net/messagein.cpp | 2 | ||||
-rw-r--r-- | src/resources/image.cpp | 2 |
3 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2005-09-16 Bjørn Lindeijer <bjorn@lindeijer.nl> + + * src/resources/image.cpp: Report which error occured when loading of + an image fails. + 2005-09-14 Björn Steinbrink <B.Steinbrink@gmx.de> * src/game.cpp: Fix missing parentheses in a negated check. diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index ebf1366f..c7760c82 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -96,7 +96,7 @@ MessageIn::readCoordinates(unsigned short &x, void MessageIn::readCoordinatePair(unsigned short &srcX, unsigned short &srcY, - unsigned short &dstX, unsigned short &dstY) + unsigned short &dstX, unsigned short &dstY) { assert(mPos + 5 <= mLength); diff --git a/src/resources/image.cpp b/src/resources/image.cpp index 6910bd55..27fc6497 100644 --- a/src/resources/image.cpp +++ b/src/resources/image.cpp @@ -75,7 +75,7 @@ Image* Image::load(void* buffer, unsigned int bufferSize, const std::string &idP SDL_Surface *tmpImage = IMG_Load_RW(rw, 1); if (tmpImage == NULL) { - logger->log("Error, image load failed"); + logger->log("Error, image load failed: %s", IMG_GetError()); return NULL; } |