|
From: Lasse Kärkkäi. <tr...@us...> - 2010-01-01 11:59:02
|
Module: performous
Branch: master
Commit: 05584da9d67cead5b9c12e48af4529ce5c16ccd0
Author: Niina Nylund <niina@niina-desktop.(none)>
Date: Fri Jan 1 13:57:25 2010 +0200
Fix SM offset setting, this should fix some sync issues (needs testing).
---
game/songparser-sm.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/game/songparser-sm.cc b/game/songparser-sm.cc
index e7c6eba..0b1fc53 100644
--- a/game/songparser-sm.cc
+++ b/game/songparser-sm.cc
@@ -137,7 +137,7 @@ bool SongParser::smParseField(std::string line) {
else if (key == "BANNER") m_song.cover = value;
else if (key == "MUSIC") m_song.music["background"] = m_song.path + value;
else if (key == "BACKGROUND") m_song.background = value;
- else if (key == "OFFSET") assign(m_song.start, value);
+ else if (key == "OFFSET") { assign(m_gap, value); m_gap *= -1; }
//Bpm values are only read into a container in class SongParser, but not used (except the first value).
else if (key == "BPMS"){
std::istringstream iss(value);
|