File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ const float UPKEEP_DIST_MULT = 1.2f;
6868const float PROBABLY_TOO_MANY_POOFS = 100000 .0f ;
6969
7070// bit array of neb2 poofs
71- std::unique_ptr<ubyte> Neb2_poof_flags;
71+ std::unique_ptr<ubyte[] > Neb2_poof_flags;
7272
7373// array of neb2 bitmaps
7474SCP_vector<SCP_string> Neb2_bitmap_filenames;
@@ -359,7 +359,7 @@ void neb2_init()
359359 Poof_accum.resize (Poof_info.size ());
360360
361361 // set up bit string
362- Neb2_poof_flags. reset ( new ubyte[calculate_num_bytes (Poof_info.size ())] );
362+ Neb2_poof_flags = std::make_unique< ubyte[]>( calculate_num_bytes (Poof_info.size ()));
363363 clear_all_bits (Neb2_poof_flags.get (), Poof_info.size ());
364364}
365365
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ extern float Neb2_fog_visibility_shockwave;
5555extern float Neb2_fog_visibility_fireball_const;
5656extern float Neb2_fog_visibility_fireball_scaled_factor;
5757
58- extern std::unique_ptr<ubyte> Neb2_poof_flags;
58+ extern std::unique_ptr<ubyte[] > Neb2_poof_flags;
5959
6060// pof texture filenames
6161extern SCP_vector<SCP_string> Neb2_bitmap_filenames;
Original file line number Diff line number Diff line change @@ -2409,6 +2409,19 @@ int CFred_mission_save::save_campaign_file(const char *pathname)
24092409 fout (" %d" , flags_to_save | ((! cm.main_hall .empty ()) ? CMISSION_FLAG_BASTION : 0 ));
24102410 }
24112411
2412+ if (!cm.substitute_main_hall .empty ()) {
2413+ fso_comment_push (" ;;FSO 3.7.2;;" );
2414+ if (optional_string_fred (" +Substitute Main Hall:" )) {
2415+ parse_comments (1 );
2416+ fout (" %s" , cm.substitute_main_hall .c_str ());
2417+ } else {
2418+ fout_version (" \n +Substitute Main Hall: %s" , cm.substitute_main_hall .c_str ());
2419+ }
2420+ fso_comment_pop ();
2421+ } else {
2422+ bypass_comment (" ;;FSO 3.7.2;; +Substitute Main Hall:" );
2423+ }
2424+
24122425 if (cm.debrief_persona_index > 0 ) {
24132426 fso_comment_push (" ;;FSO 3.6.8;;" );
24142427 if (optional_string_fred (" +Debriefing Persona Index:" )) {
You can’t perform that action at this time.
0 commit comments