Skip to content

Commit

Permalink
fix JACoders#834 - compare snd_music prefix instead of whole string
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwonko committed May 8, 2016
1 parent 1b96831 commit 42f544f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/client/snd_music.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ static bool Music_ParseMusic( gsl::czstring filename, const CGenericParser2& Par
//
for( auto& prop : pEntryGroup->GetProperties() )
{
//if (!strncmp(psKey,sKEY_MARKER,strlen(sKEY_MARKER))) // for now, assume anything is a marker
//if( Q::substr( prop.GetName(), 0, sKEY_MARKER.size() ) == sKEY_MARKER ) // for now, assume anything is a marker
{
MusicFile.MusicEntryTimes[ prop.GetName() ] = Q::svtoi( prop.GetTopValue() );
bEntryFound = true;
Expand Down Expand Up @@ -264,7 +264,7 @@ static bool Music_ParseMusic( gsl::czstring filename, const CGenericParser2& Par
{
MusicExitPoint.sNextMark = value;
}
else if( key == sKEY_TIME )
else if( Q::substr( key, 0, sKEY_TIME.size() ) == sKEY_TIME )
{
MusicExitTime_t MusicExitTime;
MusicExitTime.fTime = Q::svtof( value );
Expand Down

0 comments on commit 42f544f

Please sign in to comment.