summaryrefslogtreecommitdiff
path: root/lib/sprite.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sprite.cc')
-rw-r--r--lib/sprite.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/sprite.cc b/lib/sprite.cc
index 74ea522..7e94ce5 100644
--- a/lib/sprite.cc
+++ b/lib/sprite.cc
@@ -52,9 +52,7 @@ void mogltk::Sprite::alloc() {
}
if (!found) {
-#ifdef DEBUG
printm(M_INFO, "Allocating a new texture for sprites\n");
-#endif
posx = posy = 0;
p = new TexList(TEXSIZE);
}
@@ -66,7 +64,7 @@ mogltk::Sprite::TexList::TexList(int size) {
tex = new texture(size, size, true);
if (header)
- header->next->prev = this;
+ header->prev = this;
prev = 0;
next = header;
header = this;
@@ -142,7 +140,7 @@ void mogltk::Sprite::draw(int dx, int dy, ColorP c) {
src.x = posx; src.y = posy; src.w = sx; src.h = sy;
dst.x = dx; dst.y = dy; dst.w = sx; dst.h = sy;
- printm(M_INFO, "Drawing sprite at %i %i\n", dx, dy);
+ printm(M_INFO, "Drawing SDL sprite at %i %i\n", dx, dy);
SDL_BlitSurface(tlist->GetSurface(), &src, mogltk::engine::base_o->getsurface(), &dst);