[wpdev-commits] wolfpack/python char.cpp,1.197,1.198
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-27 22:37:04
|
Update of /cvsroot/wpdev/wolfpack/python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28058/python Modified Files: char.cpp Log Message: runebook fixes. Index: char.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/python/char.cpp,v retrieving revision 1.197 retrieving revision 1.198 diff -C2 -d -r1.197 -r1.198 *** char.cpp 26 Sep 2004 21:36:24 -0000 1.197 --- char.cpp 27 Sep 2004 22:36:53 -0000 1.198 *************** *** 2009,2015 **** PyObject *target; int range; ! int debug = 0; ! if (!PyArg_ParseTuple(args, "Oi|i:char.canreach(target, range)", &target, &range, &debug)) { return 0; } --- 2009,2015 ---- PyObject *target; int range; ! short model = 0; ! if (!PyArg_ParseTuple(args, "Oi|h:char.canreach(target, range, model)", &target, &range, &model)) { return 0; } *************** *** 2018,2026 **** if (checkWpCoord(target)) { ! if (range == -1) { Py_RETURN_FALSE; } ! targetPos = getWpCoord(target).losMapPoint(); } else if (checkWpItem(target)) { P_ITEM pItem = getWpItem(target); --- 2018,2030 ---- if (checkWpCoord(target)) { ! if (range == 0) { Py_RETURN_FALSE; } ! if (model == -1) { ! targetPos = getWpCoord(target).losMapPoint(); ! } else { ! targetPos = getWpCoord(target).losItemPoint(model); ! } } else if (checkWpItem(target)) { P_ITEM pItem = getWpItem(target); |