anything beyond the 15th char in a bonus-square line is a comment (ignored)

This commit is contained in:
Eric House 2011-04-10 13:13:45 -07:00
parent 26eadb3b99
commit d6165deb47

View file

@ -128,6 +128,11 @@ parseBonusFile( XP_U16 nCols, const char* bonusFile )
if ( !inComment && col < nCols ) {
result[(row * nCols) + col] = bonus;
++col;
/* Let's just allow anything to follow the 15 letters we
care about, e.g. comments */
if ( col >= nCols ) {
inComment = true;
}
}
}
if ( col > 0 && row < nCols - 1) {