<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wolfire.com/index.php?action=history&amp;feed=atom&amp;title=MapFix</id>
	<title>MapFix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wolfire.com/index.php?action=history&amp;feed=atom&amp;title=MapFix"/>
	<link rel="alternate" type="text/html" href="https://wiki.wolfire.com/index.php?title=MapFix&amp;action=history"/>
	<updated>2026-05-04T18:13:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki.wolfire.com/index.php?title=MapFix&amp;diff=2433&amp;oldid=prev</id>
		<title>Conner36 at 05:11, 17 June 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.wolfire.com/index.php?title=MapFix&amp;diff=2433&amp;oldid=prev"/>
		<updated>2011-06-17T05:11:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:11, 16 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{stub}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the source for the MapFix program. Check the dialogue editing section.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This is the source for the MapFix program. Check the dialogue editing section.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Conner36</name></author>
	</entry>
	<entry>
		<id>https://wiki.wolfire.com/index.php?title=MapFix&amp;diff=2420&amp;oldid=prev</id>
		<title>Conner36 at 05:06, 17 June 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.wolfire.com/index.php?title=MapFix&amp;diff=2420&amp;oldid=prev"/>
		<updated>2011-06-17T05:06:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:06, 16 June 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l124&quot;&gt;Line 124:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Modding]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: Lugaru]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: Lugaru]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Editing]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Help]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Conner36</name></author>
	</entry>
	<entry>
		<id>https://wiki.wolfire.com/index.php?title=MapFix&amp;diff=1453&amp;oldid=prev</id>
		<title>Spinnacre at 17:40, 8 February 2010</title>
		<link rel="alternate" type="text/html" href="https://wiki.wolfire.com/index.php?title=MapFix&amp;diff=1453&amp;oldid=prev"/>
		<updated>2010-02-08T17:40:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:40, 8 February 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l123&quot;&gt;Line 123:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 123:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;    }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Lugaru]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Editing]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Help]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Spinnacre</name></author>
	</entry>
	<entry>
		<id>https://wiki.wolfire.com/index.php?title=MapFix&amp;diff=116&amp;oldid=prev</id>
		<title>69.181.125.170: New page: This is the source for the MapFix program. Check the dialogue editing section.     #include &lt;stdio.h&gt;        #define SKIP(i,n)      fseek(f[i], n, SEEK_CUR)        int quit() {       print...</title>
		<link rel="alternate" type="text/html" href="https://wiki.wolfire.com/index.php?title=MapFix&amp;diff=116&amp;oldid=prev"/>
		<updated>2008-08-24T12:13:22Z</updated>

		<summary type="html">&lt;p&gt;New page: This is the source for the MapFix program. Check the dialogue editing section.     #include &amp;lt;stdio.h&amp;gt;        #define SKIP(i,n)      fseek(f[i], n, SEEK_CUR)        int quit() {       print...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is the source for the MapFix program. Check the dialogue editing section.&lt;br /&gt;
&lt;br /&gt;
   #include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
   #define SKIP(i,n)      fseek(f[i], n, SEEK_CUR)&lt;br /&gt;
   &lt;br /&gt;
   int quit() {&lt;br /&gt;
      printf(&amp;quot;(You can close this window.)\n&amp;quot;);&lt;br /&gt;
      exit(0);&lt;br /&gt;
   }&lt;br /&gt;
   &lt;br /&gt;
   int exeunt(FILE *f, FILE *g) {&lt;br /&gt;
      fclose(f);&lt;br /&gt;
      fclose(g);&lt;br /&gt;
      quit();&lt;br /&gt;
   }&lt;br /&gt;
   &lt;br /&gt;
   FILE *fopenpath(char *path, char *name, char mode[]) {&lt;br /&gt;
      char pathname[250];&lt;br /&gt;
      strcpy(pathname, path);&lt;br /&gt;
      strcat(pathname, name);&lt;br /&gt;
      return( fopen(pathname, mode) );&lt;br /&gt;
   }&lt;br /&gt;
   &lt;br /&gt;
   int main (int argc, char *argv[]) {&lt;br /&gt;
   //-----------------------------------------------OPEN&lt;br /&gt;
      char answer[50], path[200];&lt;br /&gt;
      FILE *f[2];&lt;br /&gt;
   &lt;br /&gt;
      char x, goal[] = &amp;quot;:Data:&amp;quot;;&lt;br /&gt;
      int goallen = 6;&lt;br /&gt;
      int i,j,k, okay = 0, length[2];&lt;br /&gt;
   &lt;br /&gt;
      strcpy(path, argv[0]);&lt;br /&gt;
      path[strlen(path)-6] = (char) 0;&lt;br /&gt;
         &lt;br /&gt;
      printf(&amp;quot;\nWhat map needs to be repaired?\n\n&amp;quot;);&lt;br /&gt;
      printf(&amp;quot;Enter map name: &amp;quot;);&lt;br /&gt;
      scanf(&amp;quot;%s&amp;quot;,answer);&lt;br /&gt;
      &lt;br /&gt;
      f[0] = fopenpath(path, answer, &amp;quot;r+&amp;quot;);&lt;br /&gt;
      &lt;br /&gt;
      if (f[0] == 0) {&lt;br /&gt;
         printf( &amp;quot;Can&amp;#039;t see any file named \&amp;quot;%s\&amp;quot; in this folder.\n&amp;quot;, answer);&lt;br /&gt;
         quit();&lt;br /&gt;
      }&lt;br /&gt;
   &lt;br /&gt;
      printf(&amp;quot;\nWhat&amp;#039;s your backup?\n\n&amp;quot;);&lt;br /&gt;
      printf(&amp;quot;Enter backup name: &amp;quot;);&lt;br /&gt;
      scanf(&amp;quot;%s&amp;quot;,answer);&lt;br /&gt;
      &lt;br /&gt;
      f[1] = fopenpath(path, answer, &amp;quot;r&amp;quot;);&lt;br /&gt;
      &lt;br /&gt;
      if (f[1] == 0) {&lt;br /&gt;
         printf( &amp;quot;Can&amp;#039;t see any file named \&amp;quot;%s\&amp;quot; in this folder.\n&amp;quot;, answer);&lt;br /&gt;
         fclose(f[0]);&lt;br /&gt;
         quit();&lt;br /&gt;
      }&lt;br /&gt;
   &lt;br /&gt;
      printf(&amp;quot;\nDo you want to repair the map or just the dialogue?\n\n&amp;quot;);&lt;br /&gt;
      printf(&amp;quot;m) Map. If the map crashes when you try to load it in Lugaru.\n&amp;quot;);&lt;br /&gt;
      printf(&amp;quot;d) Dialogue. If the dialogue is not showing up anymore.\n\n&amp;quot;);&lt;br /&gt;
      printf(&amp;quot;Pick one: &amp;quot;);   &lt;br /&gt;
      scanf(&amp;quot;%s&amp;quot;,answer);&lt;br /&gt;
      &lt;br /&gt;
      if (answer[0] != &amp;#039;d&amp;#039;) {&lt;br /&gt;
   //-----------------------------------------------REPAIR MAP&lt;br /&gt;
      &lt;br /&gt;
         for (i=0; i&amp;lt;2; i++) {   &lt;br /&gt;
            do {&lt;br /&gt;
            &lt;br /&gt;
               do x = fgetc( f[i] );&lt;br /&gt;
               while (x != goal[0]);&lt;br /&gt;
   &lt;br /&gt;
               okay = 1;&lt;br /&gt;
               for (k=1; k&amp;lt;goallen; k++)&lt;br /&gt;
                  if (fgetc(f[i]) != goal[k])&lt;br /&gt;
                     okay = 0;&lt;br /&gt;
               SKIP(i,-goallen+1);&lt;br /&gt;
   &lt;br /&gt;
            } while(okay == 0);&lt;br /&gt;
            &lt;br /&gt;
            SKIP(i,-4);&lt;br /&gt;
            length[i] = ftell(f[i]);&lt;br /&gt;
            &lt;br /&gt;
         }&lt;br /&gt;
      &lt;br /&gt;
         if (length[0] != length[1]) {&lt;br /&gt;
            printf(&amp;quot;Looks like the backup file is too old. You lose.\n&amp;quot;);&lt;br /&gt;
            exeunt(f[0],f[1]);&lt;br /&gt;
         } else {&lt;br /&gt;
            char *c;&lt;br /&gt;
            &lt;br /&gt;
            c = (char *)malloc( length[0] * sizeof(char) );&lt;br /&gt;
            fseek(f[0], 0, SEEK_SET);&lt;br /&gt;
            fseek(f[1], 0, SEEK_SET);&lt;br /&gt;
            fread(c, sizeof(char), length[0], f[1]);&lt;br /&gt;
            fwrite(c, sizeof(char), length[0], f[0]);&lt;br /&gt;
            &lt;br /&gt;
            printf(&amp;quot;&amp;gt; The map has been successfully repaired (supposedly).\n&amp;quot;);&lt;br /&gt;
            &lt;br /&gt;
            exeunt(f[0],f[1]);&lt;br /&gt;
         }&lt;br /&gt;
         &lt;br /&gt;
   //-----------------------------------------------REPAIR DIALOGUE&lt;br /&gt;
      } else {&lt;br /&gt;
         &lt;br /&gt;
         fseek(f[1], 11, SEEK_SET);&lt;br /&gt;
         &lt;br /&gt;
         if (fgetc(f[1]) ==  0) {&lt;br /&gt;
            fseek(f[0], 11, SEEK_SET);&lt;br /&gt;
            fputc(0, f[0]);&lt;br /&gt;
         }&lt;br /&gt;
         &lt;br /&gt;
         fseek(f[0], 0x2F, SEEK_SET);&lt;br /&gt;
         fseek(f[1], 0x2F, SEEK_SET);&lt;br /&gt;
         for (i=0x2F; i&amp;lt;0x41; i++)&lt;br /&gt;
            fputc(fgetc(f[1]), f[0]);&lt;br /&gt;
         &lt;br /&gt;
         printf(&amp;quot;&amp;gt; The dialogue has been repaired (supposedly).\n&amp;quot;);&lt;br /&gt;
         &lt;br /&gt;
         exeunt(f[0],f[1]);&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;/div&gt;</summary>
		<author><name>69.181.125.170</name></author>
	</entry>
</feed>