File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -3624,12 +3624,22 @@ int CFred_mission_save::save_objects()
3624
3624
3625
3625
// optional alternate type name
3626
3626
if (strlen (Fred_alt_names[i])) {
3627
- fout (" \n $Alt: %s\n " , Fred_alt_names[i]);
3627
+ if (optional_string_fred (" $Alt:" , " $Team:" )) {
3628
+ parse_comments ();
3629
+ } else {
3630
+ fout (" \n $Alt:" );
3631
+ }
3632
+ fout (" %s" , Fred_alt_names[i]);
3628
3633
}
3629
3634
3630
3635
// optional callsign
3631
3636
if (Mission_save_format != FSO_FORMAT_RETAIL && strlen (Fred_callsigns[i])) {
3632
- fout (" \n $Callsign: %s\n " , Fred_callsigns[i]);
3637
+ if (optional_string_fred (" $Callsign:" , " $Team:" )) {
3638
+ parse_comments ();
3639
+ } else {
3640
+ fout (" \n $Callsign:" );
3641
+ }
3642
+ fout (" %s" , Fred_callsigns[i]);
3633
3643
}
3634
3644
3635
3645
required_string_fred (" $Team:" );
Original file line number Diff line number Diff line change @@ -3538,12 +3538,22 @@ int CFred_mission_save::save_objects()
3538
3538
3539
3539
// optional alternate type name
3540
3540
if (strlen (Fred_alt_names[i])) {
3541
- fout (" \n $Alt: %s\n " , Fred_alt_names[i]);
3541
+ if (optional_string_fred (" $Alt:" , " $Team:" )) {
3542
+ parse_comments ();
3543
+ } else {
3544
+ fout (" \n $Alt:" );
3545
+ }
3546
+ fout (" %s" , Fred_alt_names[i]);
3542
3547
}
3543
3548
3544
3549
// optional callsign
3545
3550
if (save_format != MissionFormat::RETAIL && strlen (Fred_callsigns[i])) {
3546
- fout (" \n $Callsign: %s\n " , Fred_callsigns[i]);
3551
+ if (optional_string_fred (" $Callsign:" , " $Team:" )) {
3552
+ parse_comments ();
3553
+ } else {
3554
+ fout (" \n $Callsign:" );
3555
+ }
3556
+ fout (" %s" , Fred_callsigns[i]);
3547
3557
}
3548
3558
3549
3559
required_string_fred (" $Team:" );
You can’t perform that action at this time.
0 commit comments