ANSIfication; bug report 4.3BSD/bin/223
[unix-history] / usr / src / games / phantasia / setup.c
index 8ceaccb..b9d70e9 100644 (file)
@@ -144,7 +144,7 @@ static char *files[] =              /* all files to create */
            while (fgets(Databuf, SZ_DATABUF, fp) != NULL)
                /* read in text file, convert to binary */
                {
            while (fgets(Databuf, SZ_DATABUF, fp) != NULL)
                /* read in text file, convert to binary */
                {
-               sscanf(&Databuf[24], "%F%F%F%F%F%d%d%F",
+               sscanf(&Databuf[24], "%lf%lf%lf%lf%lf%d%d%lf",
                    &Curmonster.m_strength, &Curmonster.m_brains,
                    &Curmonster.m_speed, &Curmonster.m_energy,
                    &Curmonster.m_experience, &Curmonster.m_treasuretype,
                    &Curmonster.m_strength, &Curmonster.m_brains,
                    &Curmonster.m_speed, &Curmonster.m_energy,
                    &Curmonster.m_experience, &Curmonster.m_treasuretype,
@@ -158,6 +158,7 @@ static char *files[] =              /* all files to create */
            }
        }
 
            }
        }
 
+#ifdef MAKE_INSTALLS_THIS_AND_DOESNT_ANSWER_QUESTIONS
     /* write to motd file */
     printf("One line 'motd' ? ");
     if (fgets(Databuf, SZ_DATABUF, stdin) == NULL)
     /* write to motd file */
     printf("One line 'motd' ? ");
     if (fgets(Databuf, SZ_DATABUF, stdin) == NULL)
@@ -169,6 +170,7 @@ static char *files[] =              /* all files to create */
        fwrite(Databuf, sizeof(char), strlen(Databuf), fp);
        fclose(fp);
        }
        fwrite(Databuf, sizeof(char), strlen(Databuf), fp);
        fclose(fp);
        }
+#endif
 
     /* report compile-time options */
     printf("Compiled options:\n\n");
 
     /* report compile-time options */
     printf("Compiled options:\n\n");