mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
2004-10-23 Al Riddoch <alriddoch@zepler.org>
* server/WorldRouter.cpp: Add a note to check the code. * rulesets/basic/mind/goals/humanoid/transaction.py: Remove debug output. * rulesets/basic/mind/goals/common/move.py: New goal to accompany another person. * rulesets/basic/mind/goals/common/misc_goal.py: Use new accompany goal for hirelings. * rulesets/Python_API.cpp: Fix distance_to arg checking error message. * rulesets/Py_Vector3D.cpp: Add square magnitude and distance checking methods.
This commit is contained in:
parent
e4a14fd5e4
commit
feb7cb032e
8 changed files with 81 additions and 11 deletions
|
|
@ -469,7 +469,7 @@ static PyObject * distance_to(PyObject * self, PyObject * args)
|
|||
return NULL;
|
||||
}
|
||||
if (!PyLocation_Check(near) || !PyLocation_Check(other)) {
|
||||
PyErr_SetString(PyExc_TypeError, "Arg coords required");
|
||||
PyErr_SetString(PyExc_TypeError, "Arg Location required");
|
||||
return NULL;
|
||||
}
|
||||
PyLocation * sloc = (PyLocation *)near,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue