summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-15 22:46:43 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-15 22:46:43 +0000
commite7a22ae2c3721277180443d930d110edb7e180b8 (patch)
tree431769e55e76872ed810fb77b9a68da015a604a3 /crawl-ref/source/command.cc
parentdc0f066ad0fa14a48e652914b9a27e626f5eded1 (diff)
downloadcrawl-ref-e7a22ae2c3721277180443d930d110edb7e180b8.tar.gz
crawl-ref-e7a22ae2c3721277180443d930d110edb7e180b8.zip
Apply commit r6569 to 0.4 trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6570 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc17
1 files changed, 4 insertions, 13 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index 6ebf009edf..86879504ea 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -140,7 +140,6 @@ static std::string _get_version_changes(void)
std::string help;
char buf[200];
bool start = false;
- bool skip_lines = true;
while (fgets(buf, sizeof buf, fp))
{
// Remove trailing spaces.
@@ -152,18 +151,10 @@ static std::string _get_version_changes(void)
break;
}
help = buf;
- // Give up if you encountered the second set of underliners
- // and still haven't encountered the keyword "Highlights".
- if (help.find("---") != std::string::npos)
- {
- if (skip_lines)
- {
- skip_lines = false;
- continue;
- }
- else if (!start)
- break;
- }
+
+ // Give up if you encounter an older version.
+ if (help.find("Stone Soup 0.3.4") != std::string::npos)
+ break;
if (help.find("Highlights") != std::string::npos)
{