Skip to content

Commit

Permalink
Fixed setSoundPosition returning true on streams (#651)
Browse files Browse the repository at this point in the history
* Fixed setSoundPosition returning true on streams (otherwise MTA would be required to store the stream on disk)

* Moved check into CStaticFunctionDefinitions
  • Loading branch information
Luxy.c authored and Justus H committed Oct 24, 2018
1 parent 8dfb99e commit fa4cbe6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Client/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
Expand Up @@ -7586,6 +7586,9 @@ bool CStaticFunctionDefinitions::StopSound(CClientSound& Sound)

bool CStaticFunctionDefinitions::SetSoundPosition(CClientSound& Sound, double dPosition)
{
if (Sound.IsSoundStream())
return false;

Sound.SetPlayPosition(dPosition);
return true;
}
Expand Down

0 comments on commit fa4cbe6

Please sign in to comment.