From 3b51a926fcb7f80811943fc5a97c2240c9ba04f7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 22 Sep 2003 07:12:24 +0000 Subject: [PATCH] optimize --- stepmania/src/MsdFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/MsdFile.cpp b/stepmania/src/MsdFile.cpp index 3012fc45ff..b25d1552d0 100644 --- a/stepmania/src/MsdFile.cpp +++ b/stepmania/src/MsdFile.cpp @@ -66,7 +66,7 @@ void MsdFile::ReadBuf( char *buf, int len ) int i = 0; while(i < len) { - if(!strncmp(buf+i, "//", 2)) + if( buf[i] == '/' && buf[i+1] == '/' ) { /* //; erase with spaces until newline */ do {