handle briefing correctly for first add-on mission put in list
authorChris Taylor <chris@icculus.org>
Fri, 25 Feb 2005 10:28:42 +0000 (10:28 +0000)
committerChris Taylor <chris@icculus.org>
Fri, 25 Feb 2005 10:28:42 +0000 (10:28 +0000)
ChangeLog
main/mission.c

index 359bb23..2b6bd0a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,9 @@
 
        * main/titles.c: check properly whether there's a briefing
 
+       * main/mission.c: recursively search directories in "missions" 
+       for missions
+
 2005-02-11  Bradley Bell  <btb@icculus.org>
 
        * debian/control: build-dep on libphysfs-dev
index 808f67f..67ac2b4 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: mission.c,v 1.39 2005-01-26 03:53:43 btb Exp $ */
+/* $Id: mission.c,v 1.40 2005-02-25 10:28:42 chris Exp $ */
 /*
 THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
 SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
@@ -460,9 +460,9 @@ void add_missions_to_list(mle *mission, int anarchy_mode)
                        if (read_mission_file(mission, *i, ML_MISSIONDIR))
                        {
                                if (anarchy_mode || !mission->anarchy_only_flag) {
+                                       mission->builtin_hogsize = 0;
                                        mission++;
                                        num_missions++;
-                                       mission->builtin_hogsize = 0;
                                }
                                else
                                        d_free(mission->filename);