[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/actions climber.cxx,1.19,1.20
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/actions climber.cxx,1.19,1.20 |
Date: |
27 Oct 2002 17:29:26 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/actions
In directory dark:/tmp/cvs-serv26628
Modified Files:
climber.cxx
Log Message:
applied final climber patch
Index: climber.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/actions/climber.cxx,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- climber.cxx 26 Oct 2002 09:14:23 -0000 1.19
+++ climber.cxx 27 Oct 2002 17:29:24 -0000 1.20
@@ -43,18 +43,6 @@
printf("%3d %3d %3d\n", rel_getpixel(1,-1),
rel_getpixel(0,-1),rel_getpixel(-1, -1));
*/
- // This is necessary to prevent climber walking inside a wall.
- if (pingu->direction.is_left())
- {
- sprite.set_align(0, -sprite_height/2);
- sprite.set_direction(Sprite::LEFT);
- }
- else
- {
- sprite.set_align(-sprite_width, -sprite_height/2);
- sprite.set_direction(Sprite::RIGHT);
- }
-
sprite.update();
// If above is free
@@ -100,6 +88,18 @@
void
Climber::draw (GraphicContext& gc)
{
+ // This is necessary to prevent climber walking inside a wall.
+ if (pingu->direction.is_left())
+ {
+ sprite.set_align(0, -sprite_height/2);
+ sprite.set_direction(Sprite::LEFT);
+ }
+ else
+ {
+ sprite.set_align(-sprite_width, -sprite_height/2);
+ sprite.set_direction(Sprite::RIGHT);
+ }
+
gc.draw (sprite, pingu->get_pos());
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/actions climber.cxx,1.19,1.20,
torangan <=