From 3305b8ff38faf8df4fa48b36a7720e01391e57da Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 29 Apr 2005 00:30:28 +0000 Subject: [PATCH] optimization: leave lights data uncompressed --- stepmania/src/Steps.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stepmania/src/Steps.cpp b/stepmania/src/Steps.cpp index 65b4ea0fae..3b3fb89047 100644 --- a/stepmania/src/Steps.cpp +++ b/stepmania/src/Steps.cpp @@ -237,6 +237,13 @@ void Steps::Decompress() const void Steps::Compress() const { + /* Always leave lights data uncompressed. */ + if( this->m_StepsType == STEPS_TYPE_LIGHTS_CABINET && m_bNoteDataIsFilled ) + { + m_sNoteDataCompressed = CString(""); + return; + } + if( !m_sFilename.empty() ) { /* We have a file on disk; clear all data in memory. */