Difference for main/mission.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 19
 
Line 19
  * Code to handle multiple missions   * Code to handle multiple missions
  *    *
  * $Log$   * $Log$
  * Revision 1.1  1999/06/14 22:08:47  donut   * Revision 1.2  1999/09/05 11:22:50  sekmu
  * Initial revision   * windows mission and hudlog altdirs
    *
    * Revision 1.1.1.1  1999/06/14 22:08:47  donut
    * Import of d1x 1.37 source.
  *   *
  * Revision 2.9  1995/05/26  16:16:32  john   * Revision 2.9  1995/05/26  16:16:32  john
  * Split SATURN into define's for requiring cd, using cd, etc.   * Split SATURN into define's for requiring cd, using cd, etc.
Line 125
 
Line 128
 #include "error.h"  #include "error.h"
 #include "d_glob.h"  #include "d_glob.h"
   
   //added on 9/5/99 by Victor Rachels
   #include "d_slash.h"
   //end this section addition - VR
   
 mle Mission_list[MAX_MISSIONS];  mle Mission_list[MAX_MISSIONS];
   
 int Current_mission_num;  int Current_mission_num;
Line 230
 
Line 237
  FILE *mfile;   FILE *mfile;
  int is_anarchy;   int is_anarchy;
  char temp[13], *t;   char temp[13], *t;
                           char openfile[128];
  if ((t = strrchr(glob_ret.gl_pathv[j], '/')))  //added/edited on 9/5/99 by Victor Rachels for \ or /
                           if ((t = strrchr(glob_ret.gl_pathv[j], USEDSLASH)))
   //end this section edit - VR
  t++;   t++;
  else   else
  t = glob_ret.gl_pathv[j];   t = glob_ret.gl_pathv[j];
Line 246
 
Line 255
  strncpy( Mission_list[count].filename, temp, MISSION_FILENAME_LEN );   strncpy( Mission_list[count].filename, temp, MISSION_FILENAME_LEN );
  Mission_list[count].anarchy_only_flag = is_anarchy = 0;   Mission_list[count].anarchy_only_flag = is_anarchy = 0;
   
  mfile = fopen(glob_ret.gl_pathv[j], "rt");  //added/edited on 9/5/99 by Victor Rachels for windows open
                      #ifdef __WINDOWS__
                      sprintf(openfile,"%s%s",AltHogDir,glob_ret.gl_pathv[j]);
                      #else
                      sprintf(openfile,"%s",glob_ret.gl_pathv[j]);
                      #endif
                      mfile = fopen(openfile, "rt");
   //end this section add/edit - VR
   
  if (mfile) {   if (mfile) {
  char *p;   char *p;
Line 296
 
Line 312
  int is_anarchy;   int is_anarchy;
  char temp[13], *t;   char temp[13], *t;
    
  if ((t = strrchr(glob_ret.gl_pathv[j], '/')))  //added/edited on 9/5/99 by Victor Rachels for \ or /
                                   if ((t = strrchr(glob_ret.gl_pathv[j], USEDSLASH)))
   //end this section edit - VR
  t++;   t++;
  else   else
  t = glob_ret.gl_pathv[j];   t = glob_ret.gl_pathv[j];

Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2