From c0108c1022ede4743247081f408ca7780095e520 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 7 Apr 2003 22:44:33 +0000 Subject: Strange bugs... --- lib/sprite.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/sprite.cc') 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); -- cgit v1.2.3