@@ -4791,68 +4791,67 @@ int Fred_mission_save::save_waypoints()
47914791 parse_comments (2 );
47924792 fout (" \t\t ;! %d lists total\n " , Waypoint_lists.size ());
47934793
4794- SCP_list<CJumpNode>::iterator jnp;
4795- for (jnp = Jump_nodes.begin (); jnp != Jump_nodes.end (); ++jnp) {
4794+ for (auto &jnp : Jump_nodes) {
47964795 required_string_fred (" $Jump Node:" , " $Jump Node Name:" );
47974796 parse_comments (2 );
4798- save_vector (jnp-> GetSCPObject ()->pos );
4797+ save_vector (jnp. GetSCPObject ()->pos );
47994798
48004799 required_string_fred (" $Jump Node Name:" , " $Jump Node:" );
48014800 parse_comments ();
4802- fout (" %s" , jnp-> GetName ());
4801+ fout (" %s" , jnp. GetName ());
48034802
48044803 if (save_config.save_format != MissionFormat::RETAIL ) {
48054804
48064805 // The display name is only written if there was one at the start to avoid introducing inconsistencies
4807- if (save_config.always_save_display_names || jnp-> HasDisplayName ()) {
4806+ if (save_config.always_save_display_names || jnp. HasDisplayName ()) {
48084807 char truncated_name[NAME_LENGTH ];
4809- strcpy_s (truncated_name, jnp-> GetName ());
4808+ strcpy_s (truncated_name, jnp. GetName ());
48104809 end_string_at_first_hash_symbol (truncated_name);
48114810
48124811 // Also, the display name is not written if it's just the truncation of the name at the hash
4813- if (save_config.always_save_display_names || strcmp (jnp-> GetDisplayName (), truncated_name) != 0 ) {
4812+ if (save_config.always_save_display_names || strcmp (jnp. GetDisplayName (), truncated_name) != 0 ) {
48144813 if (optional_string_fred (" +Display Name:" , " $Jump Node:" )) {
48154814 parse_comments ();
48164815 } else {
48174816 fout (" \n +Display Name:" );
48184817 }
48194818
4820- fout_ext (" " , " %s" , jnp-> GetDisplayName ());
4819+ fout_ext (" " , " %s" , jnp. GetDisplayName ());
48214820 }
48224821 }
48234822
4824- if (jnp-> IsSpecialModel ()) {
4823+ if (jnp. IsSpecialModel ()) {
48254824 if (optional_string_fred (" +Model File:" , " $Jump Node:" )) {
48264825 parse_comments ();
48274826 } else {
48284827 fout (" \n +Model File:" );
48294828 }
48304829
4831- int model = jnp-> GetModelNumber ();
4830+ int model = jnp. GetModelNumber ();
48324831 polymodel* pm = model_get (model);
48334832 fout (" %s" , pm->filename );
48344833 }
48354834
4836- if (jnp-> IsColored ()) {
4835+ if (jnp. IsColored ()) {
48374836 if (optional_string_fred (" +Alphacolor:" , " $Jump Node:" )) {
48384837 parse_comments ();
48394838 } else {
48404839 fout (" \n +Alphacolor:" );
48414840 }
48424841
4843- const auto & jn_color = jnp-> GetColor ();
4842+ const auto & jn_color = jnp. GetColor ();
48444843 fout (" %u %u %u %u" , jn_color.red , jn_color.green , jn_color.blue , jn_color.alpha );
48454844 }
48464845
48474846 int hidden_is_there = optional_string_fred (" +Hidden:" , " $Jump Node:" );
48484847 if (hidden_is_there)
48494848 parse_comments ();
48504849
4851- if (hidden_is_there || jnp-> IsHidden ()) {
4850+ if (hidden_is_there || jnp. IsHidden ()) {
48524851 if (!hidden_is_there)
48534852 fout (" \n +Hidden:" );
48544853
4855- if (jnp-> IsHidden ())
4854+ if (jnp. IsHidden ())
48564855 fout (" %s" , " true" );
48574856 else
48584857 fout (" %s" , " false" );
0 commit comments