[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/actions miner.cxx,1.22,1.23
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/actions miner.cxx,1.22,1.23 |
Date: |
17 Aug 2003 11:48:41 -0000 |
Update of /var/lib/cvs/Games/Pingus/src/actions
In directory dark:/tmp/cvs-serv8891
Modified Files:
miner.cxx
Log Message:
- fixed [bug #3235] Miner and other actions look in wrong direction
Index: miner.cxx
===================================================================
RCS file: /var/lib/cvs/Games/Pingus/src/actions/miner.cxx,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- miner.cxx 19 Apr 2003 10:23:18 -0000 1.22
+++ miner.cxx 17 Aug 2003 11:48:39 -0000 1.23
@@ -39,6 +39,11 @@
miner_radius_width = miner_radius.get_width();
miner_radius_gfx_width = miner_radius_gfx.get_width();
+
+ if (pingu->direction.is_left())
+ sprite.set_direction(Sprite::LEFT);
+ else
+ sprite.set_direction(Sprite::RIGHT);
}
void
@@ -46,12 +51,6 @@
{
sprite.update();
- // FIXME: Direction handling is ugly
- if (pingu->direction.is_left())
- sprite.set_direction(Sprite::LEFT);
- else
- sprite.set_direction(Sprite::RIGHT);
-
++slow_count;
if (!(slow_count % 4))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/actions miner.cxx,1.22,1.23,
grumbel <=