[wpdev-commits] wolfpack/ai ai.cpp,1.30,1.31 ai_animals.cpp,1.14,1.15
Brought to you by:
rip,
thiagocorrea
From: Sebastian H. <dar...@us...> - 2004-09-19 22:13:48
|
Update of /cvsroot/wpdev/wolfpack/ai In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19784/ai Modified Files: ai.cpp ai_animals.cpp Log Message: Fixes Index: ai_animals.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/ai/ai_animals.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** ai_animals.cpp 10 Sep 2004 04:06:27 -0000 1.14 --- ai_animals.cpp 19 Sep 2004 22:13:35 -0000 1.15 *************** *** 65,68 **** --- 65,70 ---- float Animal_Wild_Flee::preCondition() { + return 0.0f; + /* * Fleeing from an approaching player has the following preconditions: Index: ai.cpp =================================================================== RCS file: /cvsroot/wpdev/wolfpack/ai/ai.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** ai.cpp 18 Sep 2004 21:10:40 -0000 1.30 --- ai.cpp 19 Sep 2004 22:13:35 -0000 1.31 *************** *** 296,300 **** --- 296,302 ---- PyObject* p_args = PyTuple_New( 3 ); PyTuple_SetItem( p_args, 0, PyGetCharObject( m_npc ) ); + Py_INCREF(Py_None); // SetItem steals a reference PyTuple_SetItem( p_args, 1, Py_None ); + Py_INCREF(Py_None); // SetItem steals a reference PyTuple_SetItem( p_args, 2, Py_None ); *************** *** 349,353 **** --- 351,357 ---- PyObject* p_args = PyTuple_New( 3 ); PyTuple_SetItem( p_args, 0, PyGetCharObject( m_npc ) ); + Py_INCREF(Py_None); PyTuple_SetItem( p_args, 1, Py_None ); + Py_INCREF(Py_None); PyTuple_SetItem( p_args, 2, Py_None ); *************** *** 402,406 **** --- 406,412 ---- PyObject* p_args = PyTuple_New( 3 ); PyTuple_SetItem( p_args, 0, PyGetCharObject( m_npc ) ); + Py_INCREF(Py_None); PyTuple_SetItem( p_args, 1, Py_None ); + Py_INCREF(Py_None); PyTuple_SetItem( p_args, 2, Py_None ); |