Browse Source

Play the link-in sound by default

Adam Johnson 12 years ago
parent
commit
20c52b661f
  1. 3
      Sources/Plasma/FeatureLib/pfPython/pyNetLinkingMgrGlue.cpp

3
Sources/Plasma/FeatureLib/pfPython/pyNetLinkingMgrGlue.cpp

@ -84,7 +84,8 @@ PYTHON_METHOD_DEFINITION_WKEY(ptNetLinkingMgr, linkToAge, args, kwargs)
char* kwlist[] = { "ageLink", "anim", "linkInSfx", "linkOutSfx", nullptr }; char* kwlist[] = { "ageLink", "anim", "linkInSfx", "linkOutSfx", nullptr };
PyObject* ageLinkObj = NULL; PyObject* ageLinkObj = NULL;
char* linkAnim = NULL; char* linkAnim = NULL;
bool linkInSfx, linkOutSfx = true; bool linkInSfx = true;
bool linkOutSfx = true;
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|sbb", kwlist, &ageLinkObj, &linkAnim, &linkInSfx, &linkOutSfx)) if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|sbb", kwlist, &ageLinkObj, &linkAnim, &linkInSfx, &linkOutSfx))
{ {
PyErr_SetString(PyExc_TypeError, "linkToAge expects a ptAgeLinkStruct and an optional link anim name"); PyErr_SetString(PyExc_TypeError, "linkToAge expects a ptAgeLinkStruct and an optional link anim name");

Loading…
Cancel
Save