document this odd if statement

This commit is contained in:
Max Bradbury 2020-06-24 12:39:49 +01:00
parent 632aaff4b9
commit 7405090009
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,10 @@ impl Game {
let mut name = "".to_string();
// game names can be empty - so when we strip out the leading whitespace above,
// it means that the first segment might not be the game name.
// so, check if the first segment is actually the next segment of game data
// to avoid setting the game name to "# BITSY VERSION 7.0" or something
if
segments[0].starts_with("\"\"\"") // multi-line game name
||