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:
Al Riddoch 2004-10-24 01:38:59 +00:00
parent e4a14fd5e4
commit feb7cb032e
8 changed files with 81 additions and 11 deletions

View file

@ -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,