diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-01 19:42:19 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-01 19:42:19 +0000 |
commit | 3156b39e958b466c424a27e888861e029ddb0602 (patch) | |
tree | c7fc0722864bad6adf523bbfb0af0ce9d90951ea /crawl-ref/source/files.cc | |
parent | 99beaf9eb5a1ef9ee360732140f89dae8e44d57c (diff) | |
download | crawl-ref-3156b39e958b466c424a27e888861e029ddb0602.tar.gz crawl-ref-3156b39e958b466c424a27e888861e029ddb0602.zip |
Yet Another Code Cleanup, this time concentrating on libx11.cc and
view.cc. (Yes, this is semi-random.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4032 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index c98cf0b027..040a4ba570 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -1616,11 +1616,12 @@ static void restore_tagged_file( FILE *restoreFile, int fileType, char tags[NUM_TAGS]; tag_set_expected(tags, fileType); - while(1) + while (true) { tag_type tt = tag_read(restoreFile, minorVersion); if (tt == TAG_NO_TAG) break; + tags[tt] = 0; // tag read if (fileType == TAGTYPE_PLAYER_NAME) break; |