summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-03 16:27:26 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-03 16:27:26 +0000
commit1dbd7d35ca9b7c7514fbf3491598835f3ee168cf (patch)
tree1ac4879a4814544e5a485d30e8a0ca7e89f8f575 /src/being.cpp
parent182b5231ba13a0a5865a1b7dcb4731c3009d4c57 (diff)
downloadmana-1dbd7d35ca9b7c7514fbf3491598835f3ee168cf.tar.gz
mana-1dbd7d35ca9b7c7514fbf3491598835f3ee168cf.tar.bz2
mana-1dbd7d35ca9b7c7514fbf3491598835f3ee168cf.tar.xz
mana-1dbd7d35ca9b7c7514fbf3491598835f3ee168cf.zip
Some more comment and indent changes.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/being.cpp b/src/being.cpp
index 92a1989e..31b87d73 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -18,7 +18,7 @@
* along with The Mana World; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
- * By ElvenProgrammer aka Eugenio Favalli (umperio@users.sourceforge.net)
+ * $Id$
*/
#include <stdio.h>
@@ -30,16 +30,17 @@ NODE *player_node = NULL;
NODE *head = NULL; // First node of the list
unsigned int b_count = 0; // Number of beings in the list
-/** Create a path node */
PATH_NODE::PATH_NODE(unsigned short x, unsigned short y):
- next(NULL)
+ next(NULL)
{
- this->x = x;
- this->y = y;
+ this->x = x;
+ this->y = y;
}
-/** Return a* path */
-PATH_NODE *calculate_path(unsigned short src_x, unsigned short src_y, unsigned short dest_x, unsigned short dest_y) {
+PATH_NODE *calculate_path(
+ unsigned short src_x, unsigned short src_y,
+ unsigned short dest_x, unsigned short dest_y)
+{
return find_path(1, src_x, src_y, dest_x, dest_y);
}
@@ -61,8 +62,8 @@ NODE::NODE():
hair_style(1), hair_color(1),
weapon(0)
{
- memset(coordinates, 0, 3);
- speech_color = makecol(255,255,255);
+ memset(coordinates, 0, 3);
+ speech_color = makecol(0, 0, 0);
}
/** Returns number of beings in the list */