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:25:11 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-15 22:25:11 +0000
commit9555f782913d3cf3ab1e57a3280a6a0439df9154 (patch)
treed66fd342bc5da8000986a05b013c8ab6401dfe7d /crawl-ref/source/command.cc
parent420044b3c16c778b37fde736c26a7e4863b69a48 (diff)
downloadcrawl-ref-9555f782913d3cf3ab1e57a3280a6a0439df9154.tar.gz
crawl-ref-9555f782913d3cf3ab1e57a3280a6a0439df9154.zip
Fix Evaporate prompt doing the opposite of the player's answer.
Fix some more instances of crashes resulting from PROMPT_NOTHING. Change shadow dragon corpse type to rotting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6569 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)
{