mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
anything beyond the 15th char in a bonus-square line is a comment (ignored)
This commit is contained in:
parent
26eadb3b99
commit
d6165deb47
1 changed files with 5 additions and 0 deletions
|
@ -128,6 +128,11 @@ parseBonusFile( XP_U16 nCols, const char* bonusFile )
|
||||||
if ( !inComment && col < nCols ) {
|
if ( !inComment && col < nCols ) {
|
||||||
result[(row * nCols) + col] = bonus;
|
result[(row * nCols) + col] = bonus;
|
||||||
++col;
|
++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) {
|
if ( col > 0 && row < nCols - 1) {
|
||||||
|
|
Loading…
Reference in a new issue