Update of /cvsroot/wpdev/wolfpack/python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10324/python
Modified Files:
char.cpp
Log Message:
another fix for canreach
Index: char.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/python/char.cpp,v
retrieving revision 1.194
retrieving revision 1.195
diff -C2 -d -r1.194 -r1.195
*** char.cpp 18 Sep 2004 18:41:55 -0000 1.194
--- char.cpp 19 Sep 2004 16:23:43 -0000 1.195
***************
*** 2014,2019 ****
P_ITEM pItem = getWpItem(target);
// Range -1 means that the item has to be on the char
! if (range == -1 && pItem->getOutmostChar() != self->pChar) {
Py_RETURN_FALSE;
}
--- 2014,2025 ----
P_ITEM pItem = getWpItem(target);
+ P_CHAR pOutmost = pItem->getOutmostChar();
+
+ if (pOutmost == self->pChar) {
+ Py_RETURN_TRUE;
+ }
+
// Range -1 means that the item has to be on the char
! if (range == -1 && pOutmost != self->pChar) {
Py_RETURN_FALSE;
}
|