mirror of
https://github.com/worldforge/cyphesis
synced 2026-08-13 12:26:04 -04:00
2003-08-07 Al Riddoch <alriddoch@zepler.org>
* server/Lobby.cpp: Add some debugging messages. * server/CommServer.cpp: Tweak select loop so that closed connections are cleaned up as soon as they are detected. * rulesets/World.cpp: Make demo terrain a bit more mountainous. * Convert entire codebase over to using Atlas-C++ 0.4.90, as start of transition to 0.6 API.
This commit is contained in:
parent
6c6be490a7
commit
0fbfc771ad
109 changed files with 1461 additions and 1431 deletions
|
|
@ -39,8 +39,8 @@ bool PythonMindScript::Operation(const std::string & op_type,
|
|||
ConstOperationObject * py_op = newAtlasConstRootOperation(NULL);
|
||||
py_op->operation = &op;
|
||||
py_op->own = 0;
|
||||
py_op->from = mind.m_map.getAdd(op.GetFrom());
|
||||
py_op->to = mind.m_map.getAdd(op.GetTo());
|
||||
py_op->from = mind.m_map.getAdd(op.getFrom());
|
||||
py_op->to = mind.m_map.getAdd(op.getTo());
|
||||
PyObject * ret;
|
||||
if (sub_op == NULL) {
|
||||
ret = PyObject_CallMethod(scriptObject, (char *)(op_name.c_str()),
|
||||
|
|
@ -49,8 +49,8 @@ bool PythonMindScript::Operation(const std::string & op_type,
|
|||
OperationObject * py_sub_op = newAtlasRootOperation(NULL);
|
||||
py_sub_op->operation = sub_op;
|
||||
py_sub_op->own = 0;
|
||||
py_sub_op->from = mind.m_map.getAdd(sub_op->GetFrom());
|
||||
py_sub_op->to = mind.m_map.getAdd(sub_op->GetTo());
|
||||
py_sub_op->from = mind.m_map.getAdd(sub_op->getFrom());
|
||||
py_sub_op->to = mind.m_map.getAdd(sub_op->getTo());
|
||||
ret = PyObject_CallMethod(scriptObject, (char *)(op_name.c_str()),
|
||||
"(OO)", py_op, py_sub_op);
|
||||
Py_DECREF(py_sub_op);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue