/////////////////////////////////////////////////////////////////////
| 1209 | |
| 1210 | ////////////////////////////////////////////////////////////////////////// |
| 1211 | int CScriptObjectSound::IsInMusicTheme(IFunctionHandler *pH) |
| 1212 | { |
| 1213 | if(!m_pMusicSystem) |
| 1214 | return pH->EndFunctionNull(); |
| 1215 | |
| 1216 | CHECK_PARAMETERS(1); |
| 1217 | const char *pszTheme; |
| 1218 | pH->GetParam(1, pszTheme); |
| 1219 | SMusicSystemStatus *pStatus=m_pMusicSystem->GetStatus(); |
| 1220 | if (pStatus) |
| 1221 | return pH->EndFunction(stricmp(pStatus->sTheme.c_str(), pszTheme)==0); |
| 1222 | return pH->EndFunctionNull(); |
| 1223 | } |
| 1224 | |
| 1225 | ////////////////////////////////////////////////////////////////////////// |
| 1226 | int CScriptObjectSound::IsInMusicMood(IFunctionHandler *pH) |
nothing calls this directly
no test coverage detected