From: Rafal R. <di...@us...> - 2004-08-07 17:51:37
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/GUIScript In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28767/gemrb/plugins/GUIScript Modified Files: GUIScript.cpp Log Message: changed SoundMgr::Play IsSpeech to flags added a flag to position sound relative to the listener Index: GUIScript.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/GUIScript/GUIScript.cpp,v retrieving revision 1.184 retrieving revision 1.185 diff -C2 -d -r1.184 -r1.185 *** GUIScript.cpp 7 Aug 2004 13:42:29 -0000 1.184 --- GUIScript.cpp 7 Aug 2004 17:51:28 -0000 1.185 *************** *** 2025,2029 **** char* ResRef; int XPos, YPos; ! bool speech; if (!PyArg_ParseTuple( args, "s", &ResRef )) { --- 2025,2029 ---- char* ResRef; int XPos, YPos; ! unsigned long int flags; if (!PyArg_ParseTuple( args, "s", &ResRef )) { *************** *** 2033,2037 **** //this could be less hardcoded, but would do for a test XPos=YPos=0; ! speech=false; Game *game=core->GetGame(); if(game) { --- 2033,2037 ---- //this could be less hardcoded, but would do for a test XPos=YPos=0; ! flags=0; Game *game=core->GetGame(); if(game) { *************** *** 2040,2048 **** XPos=pc->XPos; YPos=pc->YPos; ! speech=true; } } ! int ret = core->GetSoundMgr()->Play( ResRef, XPos, YPos, speech ); if (!ret) { return NULL; --- 2040,2048 ---- XPos=pc->XPos; YPos=pc->YPos; ! flags |= GEM_SND_SPEECH; } } ! int ret = core->GetSoundMgr()->Play( ResRef, XPos, YPos, flags ); if (!ret) { return NULL; |