diff options
-rwxr-xr-x | configure.ac | 4 | ||||
-rw-r--r-- | src/net/protocol.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index cef1a5eb..efad0033 100755 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_PREREQ(2.59) -AC_INIT([The Mana World], [0.0.13], [umperio@users.sourceforge.net], [tmw]) +AC_INIT([The Mana World], [0.0.14], [umperio@users.sourceforge.net], [tmw]) AC_CONFIG_HEADERS([config.h:config.h.in]) AC_LANG_CPLUSPLUS @@ -71,7 +71,7 @@ fi # FIND_PATH(programm-name, variable-name, list of directories, # if-not-found, test-parameter) -AC_DEFUN(FIND_PATH, +AC_DEFUN([FIND_PATH], [ AC_MSG_CHECKING([for $1]) if test -n "$$2"; then diff --git a/src/net/protocol.cpp b/src/net/protocol.cpp index f357b103..de41467e 100644 --- a/src/net/protocol.cpp +++ b/src/net/protocol.cpp @@ -226,7 +226,7 @@ void action(char type, int id) Being* attack(unsigned short x, unsigned short y, unsigned char direction) { - Being *target; + Being *target = NULL; if (direction == SOUTH) { target = findNode(x, y + 1); @@ -234,7 +234,7 @@ Being* attack(unsigned short x, unsigned short y, unsigned char direction) target = findNode(x - 1, y); } else if(direction == NORTH) { target = findNode(x, y - 1); - } else if(direction==EAST) { + } else if(direction == EAST) { target = findNode(x + 1, y); } |