[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3884 - trunk/pingus/src
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3884 - trunk/pingus/src |
Date: |
Sun, 20 Jul 2008 16:19:44 +0200 |
Author: grumbel
Date: 2008-07-20 16:19:43 +0200 (Sun, 20 Jul 2008)
New Revision: 3884
Modified:
trunk/pingus/src/pingu.cpp
Log:
Removed pointless pointer stuff
Modified: trunk/pingus/src/pingu.cpp
===================================================================
--- trunk/pingus/src/pingu.cpp 2008-07-20 14:16:15 UTC (rev 3883)
+++ trunk/pingus/src/pingu.cpp 2008-07-20 14:19:43 UTC (rev 3884)
@@ -47,7 +47,7 @@
status(PS_ALIVE),
pos_x(arg_pos.x),
pos_y(arg_pos.y),
- velocity(new Vector3f(0, 0, 0))
+ velocity(0, 0, 0)
{
direction.left ();
@@ -58,7 +58,6 @@
Pingu::~Pingu ()
{
- delete velocity;
}
unsigned int
@@ -105,7 +104,7 @@
void
Pingu::set_velocity (const Vector3f& velocity_)
{
- *velocity = velocity_;
+ velocity = velocity_;
}
// Set the action of the pingu (bridger, blocker, bomber, etc.)
@@ -403,7 +402,7 @@
void
Pingu::apply_force (Vector3f arg_v)
{
- *velocity += arg_v;
+ velocity += arg_v;
// Moving the pingu on pixel up, so that the force can take effect
// FIXME: this should be handled by a state-machine
--pos_y;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3884 - trunk/pingus/src,
grumbel at BerliOS <=