diff options
author | pixel <pixel> | 2003-04-07 22:44:33 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-04-07 22:44:33 +0000 |
commit | c0108c1022ede4743247081f408ca7780095e520 (patch) | |
tree | 217ddb8550e19b52651e26a64eb8df80bfa6b380 /lib/sprite.cc | |
parent | a099991354e31b55a0d0903ba5755f13aeb43824 (diff) |
Strange bugs...
Diffstat (limited to 'lib/sprite.cc')
-rw-r--r-- | lib/sprite.cc | 6 |
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); |